You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2018/11/21 13:11:34 UTC

[incubator-mxnet] branch master updated: Fix github status context if running inside a folder (#13350)

This is an automated email from the ASF dual-hosted git repository.

marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c4a97d  Fix github status context if running inside a folder (#13350)
3c4a97d is described below

commit 3c4a97dd9cfc850fb27b43de1de539408ba086ad
Author: Marco de Abreu <ma...@users.noreply.github.com>
AuthorDate: Wed Nov 21 14:11:18 2018 +0100

    Fix github status context if running inside a folder (#13350)
---
 ci/Jenkinsfile_utils.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ci/Jenkinsfile_utils.groovy b/ci/Jenkinsfile_utils.groovy
index 8794ad3..007c559 100644
--- a/ci/Jenkinsfile_utils.groovy
+++ b/ci/Jenkinsfile_utils.groovy
@@ -195,8 +195,8 @@ def update_github_commit_status(state, message) {
 
 def get_github_context() {
   // Since we use multi-branch pipelines, Jenkins appends the branch name to the job name
-  if (JOB_NAME.contains('/')) {
-    short_job_name = JOB_NAME.split('/')[0] 
+  if (env.BRANCH_NAME) {
+    short_job_name = JOB_NAME.substring(0, JOB_NAME.lastIndexOf('/')) 
   } else {
     short_job_name = JOB_NAME
   }