From 131c34012bd59af402428add9eba5f8113a3dec0 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Fri, 10 Apr 2026 17:41:27 -0300 Subject: [PATCH] ci: run titan-iac promote step in jnlp git-capable container --- Jenkinsfile | 18 ++++++++++-------- ci/Jenkinsfile.titan-iac | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cfeb1d4c..fe976922 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -93,14 +93,16 @@ spec: } } steps { - withCredentials([usernamePassword(credentialsId: 'gitea-pat', usernameVariable: 'GIT_USER', passwordVariable: 'GIT_TOKEN')]) { - sh ''' - set +x - git config user.email "jenkins@bstein.dev" - git config user.name "jenkins" - git remote set-url origin https://${GIT_USER}:${GIT_TOKEN}@scm.bstein.dev/bstein/titan-iac.git - git push origin HEAD:${FLUX_BRANCH} - ''' + container('jnlp') { + withCredentials([usernamePassword(credentialsId: 'gitea-pat', usernameVariable: 'GIT_USER', passwordVariable: 'GIT_TOKEN')]) { + sh ''' + set +x + git config user.email "jenkins@bstein.dev" + git config user.name "jenkins" + git remote set-url origin https://${GIT_USER}:${GIT_TOKEN}@scm.bstein.dev/bstein/titan-iac.git + git push origin HEAD:${FLUX_BRANCH} + ''' + } } } } diff --git a/ci/Jenkinsfile.titan-iac b/ci/Jenkinsfile.titan-iac index aaf4ce5b..bf639480 100644 --- a/ci/Jenkinsfile.titan-iac +++ b/ci/Jenkinsfile.titan-iac @@ -92,14 +92,16 @@ spec: } } steps { - withCredentials([usernamePassword(credentialsId: 'gitea-pat', usernameVariable: 'GIT_USER', passwordVariable: 'GIT_TOKEN')]) { - sh ''' - set +x - git config user.email "jenkins@bstein.dev" - git config user.name "jenkins" - git remote set-url origin https://${GIT_USER}:${GIT_TOKEN}@scm.bstein.dev/bstein/titan-iac.git - git push origin HEAD:${FLUX_BRANCH} - ''' + container('jnlp') { + withCredentials([usernamePassword(credentialsId: 'gitea-pat', usernameVariable: 'GIT_USER', passwordVariable: 'GIT_TOKEN')]) { + sh ''' + set +x + git config user.email "jenkins@bstein.dev" + git config user.name "jenkins" + git remote set-url origin https://${GIT_USER}:${GIT_TOKEN}@scm.bstein.dev/bstein/titan-iac.git + git push origin HEAD:${FLUX_BRANCH} + ''' + } } } }