Skip to content

Instantly share code, notes, and snippets.

@axtstar
Created December 20, 2016 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axtstar/d12ce3f8657bcbb9580db445c72cfa90 to your computer and use it in GitHub Desktop.
Save axtstar/d12ce3f8657bcbb9580db445c72cfa90 to your computer and use it in GitHub Desktop.
node {
try {
stage ('git'){
checkout scm
}
stage ('build'){
//sh 'mvn clean package'
parallel 'maven build':{
sh 'echo test'
}, 'node build':{
sh 'echo test'
}
}
stage ('test'){
sh 'echo test'
}
stage ('staging deploy'){
sh 'echo test'
echo 'checkout scm'
}
stage ('test after staging deploy'){
parallel 'phantomjs chrome':{
sh 'echo test'
}, 'phantomjs firefox':{
sh 'echo test'
}, 'phantomjs edge':{
sh 'echo test'
}
}
stage ('puroduction deploy'){
echo 'checkout scm'
sh 'echo test'
}
stage ('test after production deploy'){
parallel 'phantomjs chrome':{
sh 'echo test'
}, 'phantomjs firefox':{
sh 'echo test'
}, 'phantomjs edge':{
sh 'echo test'
}
}
stage('Archive result') {
sh 'touch 1.xml'
archiveArtifacts '1.xml'
}
} catch(e){
//slackSend (channel: '#general', color: '#FF0000', message: 'Error happened!')
throw e
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment