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

Fix github status context if running inside a folder #13350

Merged
merged 1 commit into from
Nov 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix github status context if running inside a folder
  • Loading branch information
marcoabreu committed Nov 21, 2018
commit 2acb7c82b20726562eed4218f7f7efbb369adf2c
4 changes: 2 additions & 2 deletions ci/Jenkinsfile_utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down