From 2fb8473e0a2c4ec800f80b144d1f66e335636025 Mon Sep 17 00:00:00 2001 From: Michael Youngstrom Date: Thu, 28 Feb 2019 10:20:27 -0500 Subject: [PATCH] Move context to env var --- scripts/Jenkinsfiles/bokchoy | 4 ++-- scripts/Jenkinsfiles/lettuce | 4 ++-- scripts/Jenkinsfiles/python | 4 ++-- scripts/Jenkinsfiles/quality | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/Jenkinsfiles/bokchoy b/scripts/Jenkinsfiles/bokchoy index f1bc28ba7c..b8a235b260 100644 --- a/scripts/Jenkinsfiles/bokchoy +++ b/scripts/Jenkinsfiles/bokchoy @@ -44,7 +44,7 @@ pipeline { string(name: 'GITHUB_REPO', value: "${REPO_NAME}"), string(name: 'TARGET_URL', value: "${BUILD_URL}"), string(name: 'DESCRIPTION', value: 'Pending'), - string(name: 'CONTEXT', value: 'jenkins/bokchoy'), + string(name: 'CONTEXT', value: "${GITHUB_CONTEXT}"), string(name: 'CREATE_DEPLOYMENT', value: 'false'), string(name: 'BUILD_STATUS', value: 'pending') ], @@ -104,7 +104,7 @@ pipeline { string(name: 'GITHUB_REPO', value: "${REPO_NAME}"), string(name: 'TARGET_URL', value: "${BUILD_URL}"), string(name: 'DESCRIPTION', value: build_description), - string(name: 'CONTEXT', value: 'jenkins/bokchoy'), + string(name: 'CONTEXT', value: "${GITHUB_CONTEXT}"), string(name: 'CREATE_DEPLOYMENT', value: create_deployment), string(name: 'BUILD_STATUS', value: build_status) ], diff --git a/scripts/Jenkinsfiles/lettuce b/scripts/Jenkinsfiles/lettuce index 5eeffd24ad..a61f7f934b 100644 --- a/scripts/Jenkinsfiles/lettuce +++ b/scripts/Jenkinsfiles/lettuce @@ -43,7 +43,7 @@ pipeline { string(name: 'GITHUB_REPO', value: "${REPO_NAME}"), string(name: 'TARGET_URL', value: "${BUILD_URL}"), string(name: 'DESCRIPTION', value: 'Pending'), - string(name: 'CONTEXT', value: 'jenkins/lettuce'), + string(name: 'CONTEXT', value: "${GITHUB_CONTEXT}"), string(name: 'CREATE_DEPLOYMENT', value: 'false'), string(name: 'BUILD_STATUS', value: 'pending') ], @@ -119,7 +119,7 @@ pipeline { string(name: 'GITHUB_REPO', value: "${REPO_NAME}"), string(name: 'TARGET_URL', value: "${BUILD_URL}"), string(name: 'DESCRIPTION', value: build_description), - string(name: 'CONTEXT', value: 'jenkins/lettuce'), + string(name: 'CONTEXT', value: "${GITHUB_CONTEXT}"), string(name: 'CREATE_DEPLOYMENT', value: create_deployment), string(name: 'BUILD_STATUS', value: build_status) ], diff --git a/scripts/Jenkinsfiles/python b/scripts/Jenkinsfiles/python index 12be76bc3d..39909bc094 100644 --- a/scripts/Jenkinsfiles/python +++ b/scripts/Jenkinsfiles/python @@ -60,7 +60,7 @@ pipeline { string(name: 'GITHUB_REPO', value: "${REPO_NAME}"), string(name: 'TARGET_URL', value: "${BUILD_URL}"), string(name: 'DESCRIPTION', value: 'Pending'), - string(name: 'CONTEXT', value: 'jenkins/python'), + string(name: 'CONTEXT', value: "${GITHUB_CONTEXT}"), string(name: 'CREATE_DEPLOYMENT', value: 'false'), string(name: 'BUILD_STATUS', value: 'pending') ], @@ -209,7 +209,7 @@ pipeline { string(name: 'GITHUB_REPO', value: "${REPO_NAME}"), string(name: 'TARGET_URL', value: "${BUILD_URL}"), string(name: 'DESCRIPTION', value: build_description), - string(name: 'CONTEXT', value: 'jenkins/python'), + string(name: 'CONTEXT', value: "${GITHUB_CONTEXT}"), string(name: 'CREATE_DEPLOYMENT', value: create_deployment), string(name: 'BUILD_STATUS', value: build_status) ], diff --git a/scripts/Jenkinsfiles/quality b/scripts/Jenkinsfiles/quality index dd6dd813f2..75a68e5054 100644 --- a/scripts/Jenkinsfiles/quality +++ b/scripts/Jenkinsfiles/quality @@ -61,7 +61,7 @@ pipeline { string(name: 'GITHUB_REPO', value: "${REPO_NAME}"), string(name: 'TARGET_URL', value: "${BUILD_URL}"), string(name: 'DESCRIPTION', value: 'Pending'), - string(name: 'CONTEXT', value: 'jenkins/quality'), + string(name: 'CONTEXT', value: "${GITHUB_CONTEXT}"), string(name: 'CREATE_DEPLOYMENT', value: 'false'), string(name: 'BUILD_STATUS', value: 'pending') ], @@ -224,7 +224,7 @@ pipeline { string(name: 'GITHUB_REPO', value: "${REPO_NAME}"), string(name: 'TARGET_URL', value: "${BUILD_URL}"), string(name: 'DESCRIPTION', value: build_description), - string(name: 'CONTEXT', value: 'jenkins/quality'), + string(name: 'CONTEXT', value: "${GITHUB_CONTEXT}"), string(name: 'CREATE_DEPLOYMENT', value: create_deployment), string(name: 'BUILD_STATUS', value: build_status) ],