Trigger various optional processes after a successful build
This commit is contained in:
parent
c9e0ee6b7e
commit
d52de4b8cd
1 changed files with 10 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
def performSuccessfulBuildActions() {
|
||||
if (params.DOXYGEN_DEPLOY_JOB != null && DOXYGEN_DEPLOY_JOB) {
|
||||
if (Jenkins.instance.getItemByFullName(DOXYGEN_DEPLOY_JOB).isBuildable()) {
|
||||
if (params.DOXYGEN_DEPLOY_JOB != null) {
|
||||
if (DOXYGEN_DEPLOY_JOB && Jenkins.instance.getItemByFullName(DOXYGEN_DEPLOY_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
job: DOXYGEN_DEPLOY_JOB,
|
||||
|
|
@ -12,8 +12,8 @@ def performSuccessfulBuildActions() {
|
|||
)
|
||||
}
|
||||
}
|
||||
if (params.STATIC_ANALYSIS_JOB != null && STATIC_ANALYSIS_JOB) {
|
||||
if (Jenkins.instance.getItemByFullName(STATIC_ANALYSIS_JOB).isBuildable()) {
|
||||
if (params.STATIC_ANALYSIS_JOB != null) {
|
||||
if (STATIC_ANALYSIS_JOB && Jenkins.instance.getItemByFullName(STATIC_ANALYSIS_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
job: STATIC_ANALYSIS_JOB,
|
||||
|
|
@ -24,8 +24,8 @@ def performSuccessfulBuildActions() {
|
|||
)
|
||||
}
|
||||
}
|
||||
if (UNIT_TEST_JOB) {
|
||||
if (params.UNIT_TEST_JOB != null && Jenkins.instance.getItemByFullName(UNIT_TEST_JOB).isBuildable()) {
|
||||
if (params.UNIT_TEST_JOB != null) {
|
||||
if (UNIT_TEST_JOB && Jenkins.instance.getItemByFullName(UNIT_TEST_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
job: UNIT_TEST_JOB,
|
||||
|
|
@ -36,8 +36,8 @@ def performSuccessfulBuildActions() {
|
|||
)
|
||||
}
|
||||
}
|
||||
if (REGRESSION_TEST_JOB) {
|
||||
if (params.REGRESSION_TEST_JOB != null && Jenkins.instance.getItemByFullName(REGRESSION_TEST_JOB).isBuildable()) {
|
||||
if (params.REGRESSION_TEST_JOB != null) {
|
||||
if (REGRESSION_TEST_JOB && Jenkins.instance.getItemByFullName(REGRESSION_TEST_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
job: REGRESSION_TEST_JOB,
|
||||
|
|
@ -48,8 +48,8 @@ def performSuccessfulBuildActions() {
|
|||
)
|
||||
}
|
||||
}
|
||||
if (params.RELEASE_TO_GIT_JOB != null && RELEASE_TO_GIT_JOB) {
|
||||
if (Jenkins.instance.getItemByFullName(RELEASE_TO_GIT_JOB).isBuildable()) {
|
||||
if (params.RELEASE_TO_GIT_JOB != null) {
|
||||
if (RELEASE_TO_GIT_JOB && Jenkins.instance.getItemByFullName(RELEASE_TO_GIT_JOB).isBuildable()) {
|
||||
build(
|
||||
wait: false,
|
||||
job: RELEASE_TO_GIT_JOB,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue