Skip to content

Commit

Permalink
Merge pull request #460 from tensorflow/abhiram/add-nnpi-ci-trigger-r19
Browse files Browse the repository at this point in the history
Add the nnpi CI trigger script to r0.19
  • Loading branch information
abhiram-krishnan authored Jan 27, 2020
2 parents 658b7b4 + f0b4e40 commit 14ede40
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions test/ci/jenkins/jenkins-trigger-nnpi.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// This script acts as a trigger script for the main he-transformer-unittest.groovy
// Jenkins job. This script is part of a Jenkins multi-branch pipeline job
// which can trigger GitHub jobs more effectively than the GitHub Pull
// Request Builder (GHPRB) plugin, in our environment.

// The original he-transformer-unittest job required the following parameters. We
// set these up below as global variables, so we do not need to rewrite the
// original script -- we only need to provide this new trigger hook.
//

String JENKINS_BRANCH = "lam/update_SPH"
String TIMEOUTTIME = "3600"

// Constants
String JENKINS_DIR = "jenkins"

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 $JENKINS_BRANCH https://gitlab.devtools.intel.com/AIPG/AlgoVal/cje-algo $JENKINS_DIR"
}
def ngtfNNPICIPreMerge = load("$JENKINS_DIR/sph-ng-tf-validation/sph-ci-premerge/ng-tf-nnpi-ci-premerge.groovy")
ngtfNNPICIPreMerge(prURL: CHANGE_URL,
prAuthor: CHANGE_AUTHOR,
useMBPipelineSCM: 'true',
checkoutBranch: '-UNDEFINED-BRANCH-'
)
echo "jenkins-trigger-nnpi.groovy completed"

} // End: node

} // End: timestamps

echo "Done"

0 comments on commit 14ede40

Please sign in to comment.