ci(jenkins): trigger opbeans release process
@@ -22,6 +22,7 @@ pipeline {
GITHUB_CHECK_ITS_NAME = 'Integration Tests'
ITS_PIPELINE = 'apm-integration-tests-selector-mbp/master'
BENCHMARK_SECRET = 'secret/apm-team/ci/benchmark-cloud'
+ OPBEANS_REPO = 'opbeans-python'
}
options {
timeout(time: 1, unit: 'HOURS')
@@ -258,6 +259,24 @@ pipeline {
}
}
}
+ stage('Opbeans') {
+ environment {
+ REPO_NAME = "${OPBEANS_REPO}"
+ }
+ steps {
+ deleteDir()
+ dir("${OPBEANS_REPO}"){
+ git credentialsId: 'f6c7695a-671e-4f4f-a331-acdce44ff9ba',
+ url: "git@github.com:elastic/${OPBEANS_REPO}.git"
+ // It's required to transform the tag value to the artifact version
+ sh script: ".ci/bump-version.sh ${env.BRANCH_NAME.replaceAll('^v', '')}", label: 'Bump version'
+ // The opbeans pipeline will trigger a release for the master branch
+ gitPush()
+ // The opbeans pipeline will trigger a release for the release tag
+ gitCreateTag(tag: "${env.BRANCH_NAME}")
+ }
+ }
+ }
}
}
}
