Make sh files in project root executable, add jenkinsfile.
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
This commit is contained in:
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
#!groovy
|
||||
|
||||
// this groovy script is executed by jenkins
|
||||
node('built-in') {
|
||||
|
||||
// checkout code from scm
|
||||
stage('Checkout') {
|
||||
checkout scm
|
||||
}
|
||||
|
||||
// build the source code with build number
|
||||
stage('Build') {
|
||||
sh(script: './docker-build.sh')
|
||||
}
|
||||
|
||||
// deploy the build output on the server
|
||||
stage ('Deploy') {
|
||||
if (env.BRANCH_NAME == "deploy") {
|
||||
|
||||
} else {
|
||||
echo "Skipping deployment for non-deploy branch."
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user