Unverified Commit 1f999e75 authored by aslepko's avatar aslepko Committed by GitHub

Update jenkins-trigger.groovy

parent ebc2ed3e
......@@ -22,27 +22,25 @@
// original script -- we only need to provide this new trigger hook.
//
// Parameters which ngraph-unittest uses:
String PR_URL = CHANGE_URL
String PR_COMMIT_AUTHOR = CHANGE_AUTHOR
String PR_TARGET = CHANGE_TARGET
String PR_TITLE = CHANGE_TITLE
String JENKINS_BRANCH = "aslepko/ci"
Integer TIMEOUTTIME = "3600"
// BRANCH parameter is no loner needed
// TRIGGER_URL parameter is no longer needed
// Constants
JENKINS_DIR = '.'
env.MB_PIPELINE_CHECKOUT = true
timestamps {
node("trigger") {
deleteDir() // Clear the workspace before starting
// Clone the cje-algo directory which contains our Jenkins groovy scripts
def sleeptime=0
retry(count: 3) {
sleep sleeptime; sleeptime = 10
sh "git clone -b $jenkinsBranch https://github.intel.com/AIPG/cje-algo"
}
try {
sh "git clone -b $JENKINS_BRANCH https://github.intel.com/AIPG/cje-algo ."
} catch (e) {
......@@ -61,10 +59,10 @@ timestamps {
def ngraphCIPreMerge = load("${JENKINS_DIR}/ngraph-ci-premerge.groovy")
ngraphCIPreMerge(premerge: 'true',
prURL: PR_URL,
prTitle: PR_TITLE,
prTarget: PR_TARGET,
prAuthor: PR_COMMIT_AUTHOR,
prURL: CHANGE_URL,
prTitle: CHANGE_TITLE,
prTarget: CHANGE_TARGET,
prAuthor: CHANGE_AUTHOR,
jenkinsBranch: JENKINS_BRANCH,
timeoutTime: TIMEOUTTIME,
useMBPipelineSCM: 'true',
......@@ -74,6 +72,7 @@ timestamps {
echo "ngraph-ci-premerge.groovy completed"
} // End: node
} // End: timestamps
echo "Done"
......
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