From 18eb2d30c523c06d2ee52c49b5308e689dda6f1d Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 6 Apr 2023 10:30:40 +0200 Subject: [PATCH] fix(jenkins): do not trigger emissary-firmware with dirty tag --- Jenkinsfile | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cac8134..2340d76 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,9 +15,9 @@ pipeline { script { withCredentials([ usernamePassword([ - credentialsId: 'forge-jenkins', - usernameVariable: 'GIT_USERNAME', - passwordVariable: 'GIT_PASSWORD' + credentialsId: 'forge-jenkins', + usernameVariable: 'GIT_USERNAME', + passwordVariable: 'GIT_PASSWORD' ]) ]) { sh ''' @@ -43,20 +43,21 @@ pipeline { script { withCredentials([ usernamePassword([ - credentialsId: 'forge-jenkins', - usernameVariable: 'GITEA_RELEASE_USERNAME', - passwordVariable: 'GITEA_RELEASE_PASSWORD' + credentialsId: 'forge-jenkins', + usernameVariable: 'GITEA_RELEASE_USERNAME', + passwordVariable: 'GITEA_RELEASE_PASSWORD' ]) ]) { sh 'make gitea-release' } def currentVersion = sh(returnStdout: true, script: 'make full-version').trim() - build( - job: "../emissary-firmware/${env.GIT_BRANCH}", - parameters: [ - [$class: 'StringParameterValue', name: 'emissaryRelease', value: currentVersion] - ] - ) + sh 'git status' + // build( + // job: "../emissary-firmware/${env.GIT_BRANCH}", + // parameters: [ + // [$class: 'StringParameterValue', name: 'emissaryRelease', value: currentVersion] + // ] + // ) } } }