Skip to content

Commit

Permalink
Test environments, stages, post
Browse files Browse the repository at this point in the history
  • Loading branch information
Gopal Saini committed Nov 15, 2018
1 parent 4fa4b0c commit 8577cc4
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,38 @@
pipeline {
agent { docker { image 'node:6.3' } }
agent {
docker { image 'node:10.13' }
}

environment {
DISABLE_AUTH = 'true'
DB_ENGINE = 'sqlite'
}

stages {
stage('build') {
steps {
sh 'npm --version'
sh 'printenv'
}
}
}

post {
always {
echo 'This will always run'
}
success {
echo 'This will run only if successful'
}
failure {
echo 'This will run only if failed'
}
unstable {
echo 'This will run only if the run was marked as unstable'
}
changed {
echo 'This will run only if the state of the Pipeline has changed'
echo 'For example, if the Pipeline was previously failing but is now successful'
}
}
}

0 comments on commit 8577cc4

Please sign in to comment.