Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
No need to define a variable here.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Evans committed Apr 8, 2020
1 parent e75df63 commit 89e0beb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ci/Jenkinsfile_utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ def assign_node_labels(args) {
def sanity_build_running(pr) {
def retVal = "UNKNOWN"
try {
def ji = Jenkins.instance
def prSanityBuild = ji.getItem("mxnet-validation").getItem("sanity").getItem(pr)
def prSanityBuild = Jenkins.instance.getItem("mxnet-validation").getItem("sanity").getItem(pr)
if (prSanityBuild.isBuilding() || prSanityBuild.isInQueue()) {
echo "Sanity build " + prSanityBuild.getLastBuild().number + " currently running"
retVal = "RUNNING"
Expand Down

0 comments on commit 89e0beb

Please sign in to comment.