Skip to content

Instantly share code, notes, and snippets.

@detroitpro
Created November 6, 2016 00:13
Show Gist options
  • Save detroitpro/fbe9bc9997e3d9a33ab752c0b8fbd6f6 to your computer and use it in GitHub Desktop.
Save detroitpro/fbe9bc9997e3d9a33ab752c0b8fbd6f6 to your computer and use it in GitHub Desktop.
node {
stage('Preparation') {
//git checkout goes here
}
stage('Build') {
try {
bat 'build Default BuildSolution'
} catch (e) {
throw e
}
}
stage('Unit') {
try {
bat 'build Default UnitTest'
} catch (e){
throw e
}
}
stage('Database') {
try {
bat 'build Default BuildDatabaseMigrator DropDatabase MigrateDatabase Env=Develop'
} catch (e){
throw e
}
}
stage('Integration') {
try {
bat 'build Default IntegrationTest Env=Develop'
} catch (e){
throw e
}
}
stage('Deploy Develop') {
try {
bat 'build Default Deploy Env=Develop'
} catch (e){
throw e
}
}
stage('Deploy Acceptance') {
try {
bat 'build Default AcceptanceTest Env=Develop'
} catch (e){
throw e
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment