Browse code

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 <github@gone.nl>

Sebastiaan van Stijn authored on 2019/10/22 05:48:03
Showing 1 changed files
... ...
@@ -48,7 +48,9 @@ pipeline {
48 48
                 sh '''
49 49
                 docker run --rm \
50 50
                   -v "$WORKSPACE:/workspace" \
51
-                  alpine sh -c 'apk add --no-cache -q git bash && cd /workspace && hack/validate/dco'
51
+                  -e VALIDATE_REPO=${GIT_URL} \
52
+                  -e VALIDATE_BRANCH=${CHANGE_TARGET} \
53
+                  alpine sh -c 'apk add --no-cache -q bash git openssh-client && cd /workspace && hack/validate/dco'
52 54
                 '''
53 55
             }
54 56
         }