diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..7212640 --- /dev/null +++ b/Jenkinsfile @@ -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." + } + } + +} + diff --git a/docker-build.sh b/docker-build.sh old mode 100644 new mode 100755 diff --git a/docker-load.sh b/docker-load.sh old mode 100644 new mode 100755