Skip to content

Commit

Permalink
Tag all dependent repositories with correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Dec 20, 2017
1 parent 1a703eb commit b63cd01
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,24 @@ node('docker && linux-build') {
'''
}

stage('Tagging') {
sh '''#!/bin/bash
repo forall -e -c git tag "$GITHUB_USER/$GITHUB_REPO/$VERSION"
'''

if (params.GITHUB_UPLOAD) {
retry(2) {
sh '''#!/bin/bash
echo "machine github.com login user password $GITHUB_TOKEN" > ~/.netrc
repo forall -e -c git push ayufan "$GITHUB_USER/$GITHUB_REPO/$VERSION" -f
rm ~/.netrc
'''
}
} else {
echo 'Flagged as an no tagging release job'
}
}

stage('Release') {
if (params.GITHUB_UPLOAD) {
sh '''#!/bin/bash
Expand Down

0 comments on commit b63cd01

Please sign in to comment.