remove unnecessary context reference from trigger job

(cherry picked from commit 817fdf9b439e85c3ddfda126b3efb4e45c36006b)
This commit is contained in:
spalger 2020-07-14 15:08:11 -07:00
parent e42630d1c5
commit b1433e6317
2 changed files with 7 additions and 2 deletions

View file

@ -21,7 +21,7 @@ withGithubCredentials {
commits.take(MAXIMUM_COMMITS_TO_BUILD).each { commit ->
catchErrors {
githubCommitStatus.create(commit, 'pending', 'Baseline started.', context = 'kibana-ci-baseline')
githubCommitStatus.create(commit, 'pending', 'Baseline started.', 'kibana-ci-baseline')
build(
propagate: false,

View file

@ -35,7 +35,12 @@ def onFinish() {
// state: error|failure|pending|success
def create(sha, state, description, context = 'kibana-ci') {
withGithubCredentials {
return githubApi.post("repos/elastic/kibana/statuses/${sha}", [ state: state, description: description, context: context, target_url: env.BUILD_URL ])
return githubApi.post("repos/elastic/kibana/statuses/${sha}", [
state: state,
description: description,
context: context,
target_url: env.BUILD_URL
])
}
}