Fix Jenkinsfile to allow a consistent build for feature branches
@@ -18,7 +18,7 @@ node {
// needed after the release and tag change, otherwise Studio is not found on Sonatype
checkout(
- [$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]],
+ [$class: 'GitSCM', branches: [[name: "develop"]],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
@@ -43,9 +43,13 @@ node {
//sh "cd orientdb && rsync -ra --stats ${WORKSPACE}/target/site/apidocs/ -e ${env.RSYNC_JAVADOC}/${env.BRANCH_NAME}/"
}
+ try{
build job: "orientdb-gremlin-multibranch/${env.BRANCH_NAME}", wait: false
build job: "orientdb-security-multibranch/${env.BRANCH_NAME}", wait: false
build job: "orientdb-enterprise-multibranch/${env.BRANCH_NAME}", wait: false
+ } catch (ex){
+ slackSend(color: '#FFAAAA', channel: '#jenkins-failures', message: "Error scheduling downstream builds: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})\n${ex}")
+ }
}catch(e){
slackSend(color: '#FF0000', channel: '#jenkins-failures', message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})\n${e}")
