Skip to content

Commit

Permalink
Merge pull request #573 from LiskHQ/566-archive-build-in-jenkins
Browse files Browse the repository at this point in the history
Make built app an artifact of Jenkins build - Closes #566
  • Loading branch information
slaweet authored Mar 20, 2018
2 parents 5ecdc07 + 5333774 commit 4805bb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ node('lisk-hub') {
rsync -axl --delete --rsync-path="mkdir -p /var/www/test/${JOB_NAME%/*}/$BRANCH_NAME/ && rsync" $WORKSPACE/app/build/ jenkins@master-01:/var/www/test/${JOB_NAME%/*}/$BRANCH_NAME/
npm run --silent bundlesize
'''
archiveArtifacts artifacts: 'app/build/'
archiveArtifacts artifacts: 'app/build-testnet/'
githubNotify context: 'Jenkins test deployment', description: 'Commit was deployed to test', status: 'SUCCESS', targetUrl: "${HUDSON_URL}test/" + "${JOB_NAME}".tokenize('/')[0] + "/${BRANCH_NAME}"
} catch (err) {
echo "Error: ${err}"
Expand Down

0 comments on commit 4805bb0

Please sign in to comment.