From 6d0a4a51332b578dbc2213120f2a2b346b48ac99 Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Fri, 8 May 2026 08:43:28 +0200 Subject: [PATCH] Fixes --- jenkins/divendres | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/jenkins/divendres b/jenkins/divendres index b01fea0..e410553 100644 --- a/jenkins/divendres +++ b/jenkins/divendres @@ -25,22 +25,24 @@ pipeline { } } - stage('Post Dijous') { + stage('Post Divendres') { steps { // Securely injects Jenkins credentials as environment variables + // Note the added curly braces wrapping the sh block withCredentials([ string(credentialsId: 'BSKY_GROMENAWARE_HANDLE', variable: 'BSKY_GROMENAWARE_HANDLE'), string(credentialsId: 'BSKY_GROMENAWARE_APP_PASSWORD', variable: 'BSKY_GROMENAWARE_APP_PASSWORD') - ]) - sh """ - . venv/bin/activate - python3 bsky_post.py "DIVENDRES!!!!!!" \\ - --username "\$BSKY_HANDLE" \\ - --password "\$BSKY_APP_PASSWORD" \\ - --image media/divendres.mp4 \\ - --alt "DIVENDRES!!" \\ - --lang ca - """ + ]) { + sh """ + . venv/bin/activate + python3 bsky_post.py "DIVENDRES!!!!!!" \\ + --username "\$BSKY_GROMENAWARE_HANDLE" \\ + --password "\$BSKY_GROMENAWARE_APP_PASSWORD" \\ + --video media/divendres.mp4 \\ + --alt "DIVENDRES!!" \\ + --lang ca + """ + } } } }