forked from steemit/steem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pipeline { | ||
agent any | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
checkout scm | ||
sh 'ciscripts/triggerbuild.sh' | ||
} | ||
} | ||
} | ||
post { | ||
success { | ||
sh 'ciscripts/buildsuccess.sh' | ||
} | ||
failure { | ||
sh 'ciscripts/buildfailure.sh' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
#!/bin/bash | ||
cd $BUILD_SPACE | ||
curl -XPOST -H "Authorization: token $GITHUB_SECRET" https://api.github.com/repos/steemit/steem/statuses/$(git rev-parse HEAD) -d "{ | ||
\"state\": \"failure\", | ||
\"target_url\": \"${BUILD_URL}\", | ||
\"description\": \"JenkinsCI reports the build has failed!\", | ||
\"context\": \"jenkins-ci-steemit\" | ||
}" | ||
rm -rf $WORKSPACE/$BUILD_SPACE | ||
#rm -rf $WORKSPACE/* | ||
# make docker cleanup after itself and delete all exited containers | ||
sudo docker rm -v $(docker ps -a -q -f status=exited) || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
curl -XPOST -H "Authorization: token $GITHUB_SECRET" https://api.github.com/repos/steemit/steem/statuses/$(git rev-parse HEAD) -d "{ | ||
\"state\": \"pending\", | ||
\"target_url\": \"${BUILD_URL}\", | ||
\"description\": \"The build is now pending in jenkinsci!\", | ||
\"context\": \"jenkins-ci-steemit\" | ||
}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#/bin/bash | ||
cd $BUILD_SPACE | ||
#testcommit | ||
curl -XPOST -H "Authorization: token $GITHUB_SECRET" https://api.github.com/repos/steemit/steem/statuses/$(git rev-parse HEAD) -d "{ | ||
\"state\": \"success\", | ||
\"target_url\": \"${BUILD_URL}\", | ||
\"description\": \"Jenkins-CI reports build succeeded!!\", | ||
\"context\": \"jenkins-ci-steemit\" | ||
}" | ||
rm -rf $WORKSPACE/$BUILD_SPACE | ||
#rm -rf $WORKSPACE/* | ||
# make docker cleanup after itself and delete all exited containers | ||
sudo docker rm -v $(docker ps -a -q -f status=exited) || true |