From c1d01df2281002c50e5c7e7712f53f402079c6a0 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 17 Mar 2021 21:14:53 +0100 Subject: [PATCH] fetch changes before checking out --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 888c879..6cd2358 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,8 @@ pipeline { } steps { sh '''cd /var/www/ellpeck - git checkout ${GIT_COMMIT}''' + git fetch + git checkout ${GIT_COMMIT} -f''' } } stage('Node') {