From 846ce70f2104a1476655bd5a8ec3b2356b72ce7f Mon Sep 17 00:00:00 2001 From: Carsten Lohmann Date: Tue, 31 May 2022 11:55:23 +0200 Subject: [PATCH] Fix git checkout in release pipeline. Making sure the checked-out repo is not in state "detached head". Signed-off-by: Carsten Lohmann --- jenkins/Hono-Release-Pipeline.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkins/Hono-Release-Pipeline.groovy b/jenkins/Hono-Release-Pipeline.groovy index 4206a33219..62ebd88f19 100644 --- a/jenkins/Hono-Release-Pipeline.groovy +++ b/jenkins/Hono-Release-Pipeline.groovy @@ -142,6 +142,7 @@ spec: checkout([$class : 'GitSCM', branches : [[name: "${params.BRANCH}"]], doGenerateSubmoduleConfigurations: false, + extensions : [[$class: 'LocalBranch', localBranch: "**"]], userRemoteConfigs : [[credentialsId: 'github-bot-ssh', url: 'ssh://git@github.com/eclipse/hono.git']]]) } }