Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
reactjs-ci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bùi Bá Trường
reactjs-ci
Commits
c28764a5
Commit
c28764a5
authored
Aug 01, 2019
by
Bùi Bá Trường
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
truongbb - test email round 2
parent
7568502f
Pipeline
#496
passed with stages
in 7 minutes and 28 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
21 deletions
+11
-21
.gitlab-ci.yml
.gitlab-ci.yml
+11
-21
No files found.
.gitlab-ci.yml
View file @
c28764a5
...
...
@@ -14,7 +14,6 @@ before_script:
stages
:
-
checkout
-
build
# - send_email
checkout
:
stage
:
checkout
...
...
@@ -22,13 +21,16 @@ checkout:
-
master
# - merge_requests
script
:
# - ssh -o StrictHostKeyChecking=no root#@192.168.1.201 "ls" # test command
-
ls
-
cd /root/GitlabRunner/repo/ && ls
-
rm -rf ./ci
-
git config --global user.name 'truongbb96'
-
git config --global user.email 'truongbb@itsol.vn'
-
git clone https://truongbb96:hoanghuynh0801@git.myitsol.com/truongbb96/reactjs-ci.git
# --------------CHECKOUT---------------
# - cd /root/GitlabRunner/repo/ && ls
# - rm -rf ./reactjs-ci
# - git config --global user.name 'truongbb96'
# - git config --global user.email 'truongbb@itsol.vn'
# - git clone https://truongbb96:hoanghuynh0801@git.myitsol.com/truongbb96/reactjs-ci.git
# --------------PULL------------------
-
cd /root/GitlabRunner/repo/reactjs-ci
-
git stash
-
git pull
build
:
stage
:
build
...
...
@@ -46,15 +48,3 @@ build:
artifacts
:
paths
:
-
public
\ No newline at end of file
# send_email:
# stage: send_email
# only:
# - master
# # - merge_requests
# script:
# - curl --request POST
# --url https://api.sendgrid.com/v3/mail/send
# --header 'Authorization:Bearer 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'
# --header 'Content-Type:application/json'
# --data '{"personalizations":[{"to":[{"email":"truongbb96@gmail.com"}]}],"from":{"email":"truongbb@itsol.vn"},"subject":"CI pipeline result","content":[{"type":"text/plain","value":"CI pipeline done!"}]}'
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment