Terms of Service | Privacy Policy | Cookie Policy

Commit f16b93ae authored by Uwe Plonus's avatar Uwe Plonus

Added Jenkinsfile

parent 22920fa7
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Build') {
steps {
buildStep()
}
}
stage('Deploy') {
// run this stage only when on master in the original repository and build is successful
when {
environment name: 'CHANGE_FORK', value: ''
expression { GIT_URL ==~ 'https://github.com/sw4j-org/.*' }
expression { currentBuild.result == null || currentBuild.result == 'SUCCESS' }
}
steps {
doDeploy()
publishSite()
}
}
}
post {
always {
resultMailer()
cleanWs()
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment