diff --git a/Jenkinsfile b/Jenkinsfile index 99aab7c7e..4fd48e7c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -74,6 +74,16 @@ node('lisk-nano') { } } + stage ('Deploy') { + try { + sh 'rsync -axl --delete --rsync-path="mkdir -p /var/www/test/lisk-nano/$BRANCH_NAME/ && rsync" $WORKSPACE/app/dist/ jenkins@master-01:/var/www/test/lisk-nano/$BRANCH_NAME/' + githubNotify context: 'Jenkins test deployment', description: 'Commit was deployed to test', status: 'SUCCESS', targetUrl: "${HUDSON_URL}test/lisk-nano/${BRANCH_NAME}" + } catch (err) { + echo "Error: ${err}" + fail('Stopping build: deploy failed') + } + } + stage ('Run Unit Tests') { try { ansiColor('xterm') { @@ -111,15 +121,6 @@ node('lisk-nano') { fail('Stopping build: end-to-end test suite failed') } } - - stage ('Deploy') { - try { - sh 'rsync -axl --delete --rsync-path="mkdir -p /var/www/test/lisk-nano/$BRANCH_NAME/ && rsync" $WORKSPACE/app/dist/ jenkins@master-01:/var/www/test/lisk-nano/$BRANCH_NAME/' - } catch (err) { - echo "Error: ${err}" - fail('Stopping build: deploy failed') - } - } } catch(err) { echo "Error: ${err}" } finally {