From 9c388fb11928e2a1cb3e821f3d6ba802b1b5533c Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 21 Oct 2019 22:48:03 +0200 Subject: [PATCH] Jenkinsfile: set repo and branch for DCO check as well Commit 7019b60d0d6f3d69e6ccf481ca0a912905a9c1d7 added these env-vars to other stages, but forgot to update the DCO stage, which also does a diff to validate commits that are in a PR. Also adding openssh-client, for situations where the upstream needs to be accessed through an ssh connection. Signed-off-by: Sebastiaan van Stijn (cherry picked from commit 7c5fd83c22d9540b6e31393abdf62e54c4ff6060) Signed-off-by: Sebastiaan van Stijn --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6e3e26e68d031..8a0ad0c079e08 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,7 +47,9 @@ pipeline { sh ''' docker run --rm \ -v "$WORKSPACE:/workspace" \ - alpine sh -c 'apk add --no-cache -q git bash && cd /workspace && hack/validate/dco' + -e VALIDATE_REPO=${GIT_URL} \ + -e VALIDATE_BRANCH=${CHANGE_TARGET} \ + alpine sh -c 'apk add --no-cache -q bash git openssh-client && cd /workspace && hack/validate/dco' ''' } }