From e584dc72ca538ee0fb84ec2b1e9ca26558d7f651 Mon Sep 17 00:00:00 2001 From: Gurminder Sunner Date: Thu, 5 Dec 2019 13:48:15 +0000 Subject: [PATCH 1/3] add pr build comment --- ci/add-pr-build-comment | 31 +++++++++++++++++++++++++++++++ jenkins-x.yml | 6 ++++++ 2 files changed, 37 insertions(+) create mode 100755 ci/add-pr-build-comment diff --git a/ci/add-pr-build-comment b/ci/add-pr-build-comment new file mode 100755 index 0000000000..23f79cd707 --- /dev/null +++ b/ci/add-pr-build-comment @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# +# add-pr-build-comment +# +set -o nounset +set -o errexit +set -o pipefail +set -o noclobber +set -o noglob +set -o xtrace + +STARTUP_DIR="$( cd "$( dirname "$0" )" && pwd )" + +REPO_OWNER=${REPO_OWNER} +REPO_NAME=${REPO_NAME} +PULL_NUMBER=${PULL_NUMBER} +BUILD_NUMBER=${BUILD_NUMBER} +PIPELINE_CONTEXT=${PIPELINE_CONTEXT} + +COMMENT_MSG=$(cat < Date: Thu, 5 Dec 2019 14:18:40 +0000 Subject: [PATCH 2/3] updater lint check for build comment --- jenkins-x-lint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jenkins-x-lint.yml b/jenkins-x-lint.yml index ab26abe243..ad20c6b3a6 100644 --- a/jenkins-x-lint.yml +++ b/jenkins-x-lint.yml @@ -6,6 +6,12 @@ pipelineConfig: agent: image: seldonio/core-builder:0.4 stages: + - name: pr-build-comment + steps: + - agent: + image: gcr.io/jenkinsxio/builder-go:2.0.916-264 + dir: ci + sh: "./add-pr-build-comment" - name: lint-checks parallel: - name: python-lint-task From b04995c59e669bdd02416eff131bd39126e097b4 Mon Sep 17 00:00:00 2001 From: Gurminder Sunner Date: Thu, 5 Dec 2019 14:53:39 +0000 Subject: [PATCH 3/3] add PR build comment to integration tests --- jenkins-x-integration.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jenkins-x-integration.yml b/jenkins-x-integration.yml index 5091e3d309..3ceb3f8c63 100644 --- a/jenkins-x-integration.yml +++ b/jenkins-x-integration.yml @@ -6,6 +6,12 @@ pipelineConfig: agent: image: seldonio/core-builder:0.4 stages: + - name: pr-build-comment + steps: + - agent: + image: gcr.io/jenkinsxio/builder-go:2.0.916-264 + dir: ci + sh: "./add-pr-build-comment" - name: end-to-end steps: - name: test-end-to-end