Skip to content

Commit

Permalink
Merge pull request ibmruntimes#779 from pshipton/cpe2
Browse files Browse the repository at this point in the history
Update copyrightCheckDir to post to Slack on failure
  • Loading branch information
AdamBrousseau authored Apr 19, 2024
2 parents 3c734c7 + 86cc7b1 commit 35724ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions buildenv/jenkins/jobs/infrastructure/copyrightCheckDir.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* ===========================================================================
* (c) Copyright IBM Corp. 2019, 2023 All Rights Reserved
* (c) Copyright IBM Corp. 2019, 2024 All Rights Reserved
* ===========================================================================
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -20,7 +20,7 @@
* 2 along with this work; if not, see <http://www.gnu.org/licenses/>.
*
* ===========================================================================
*/
*/

def VERBOSE = ""
def ROOTDIR = ""
Expand Down Expand Up @@ -52,11 +52,13 @@ timeout(time: 6, unit: 'HOURS') {
timeout: 30]],
userRemoteConfigs: [[url: scm.getUserRemoteConfigs().get(0).getUrl()]]]
sh (script: "sh buildenv/jenkins/jobs/infrastructure/copyrightCheckDir.sh REPO=${params.ghprbGhRepository} ${VERBOSE} ${ROOTDIR}")
} catch (e) {
slackSend channel: '#jenkins-sandbox', color: 'danger', message: "Failed: ${JOB_NAME} #${BUILD_NUMBER} (<${BUILD_URL}|Open>)"
throw e
} finally {
cleanWs()
}
} // node
} // timestamps
} // stage
} // timeout

0 comments on commit 35724ad

Please sign in to comment.