From f9aaa8b3ed99da8046d332d65305257160bc12e0 Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Fri, 8 May 2026 14:35:24 +0200 Subject: [PATCH] fixes --- jenkins/dijous | 11 ++++++----- jenkins/diumenge_nit | 22 ++++++++++++---------- jenkins/divendres_nit | 19 ++++++++++--------- 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/jenkins/dijous b/jenkins/dijous index 269d8dc..f14c884 100644 --- a/jenkins/dijous +++ b/jenkins/dijous @@ -2,8 +2,8 @@ pipeline { agent any triggers { - // Every Friday at 07:15 - cron('15 7 * * 5') + // Every Thursday at 07:15 + cron('15 7 * * 4') } options { @@ -36,13 +36,14 @@ pipeline { sh """ . venv/bin/activate python3 bsky_post.py "Feliç dijous!!!!" \\ - --username "\$BSKY_HANDLE" \\ - --password "\$BSKY_APP_PASSWORD" \\ + --username "\$BSKY_GROMENAWARE_HANDLE" \\ + --password "\$BSKY_GROMENAWARE_APP_PASSWORD" \\ --image media/dijous.jpg \\ --alt "Feliç dijous!!" \\ --lang ca \\ --service https://eurosky.social - """ + """ + } } } } diff --git a/jenkins/diumenge_nit b/jenkins/diumenge_nit index c3ad86c..5417d82 100644 --- a/jenkins/diumenge_nit +++ b/jenkins/diumenge_nit @@ -2,8 +2,8 @@ pipeline { agent any triggers { - // Every Friday at 07:15 - cron('15 7 * * 5') + // Every Sunday at 21:15 + cron('15 21 * * 0') } options { @@ -25,7 +25,7 @@ pipeline { } } - stage('Post diumenge Nit') { + stage('Post Divendres') { steps { // Securely injects Jenkins credentials as environment variables // Note the added curly braces wrapping the sh block @@ -36,23 +36,25 @@ pipeline { sh """ . venv/bin/activate python3 bsky_post.py "DEMÀ DILLUNS!!!!!!!!!!!!" \\ - --username "\$BSKY_HANDLE" \\ - --password "\$BSKY_APP_PASSWORD" \\ - --image media/diumenge.mp4 \\ + --username "\$BSKY_GROMENAWARE_HANDLE" \\ + --password "\$BSKY_GROMENAWARE_APP_PASSWORD" \\ + --video media/diumenge.mp4 \\ --alt "DEMÀ DILLUNS!!!!!!!!!!!!" \\ --lang ca \\ - --service https://eurosky.social - """ + --service https://eurosky.social \\ + --allow-pds-video-fallback + """ + } } } } post { success { - echo '✅ Diumenge post published successfully.' + echo '✅ Divendres post published successfully.' } failure { - echo '❌ Diumenge post failed.' + echo '❌ Divendres post failed.' } } } \ No newline at end of file diff --git a/jenkins/divendres_nit b/jenkins/divendres_nit index 73eb574..27f711a 100644 --- a/jenkins/divendres_nit +++ b/jenkins/divendres_nit @@ -2,8 +2,8 @@ pipeline { agent any triggers { - // Every Friday at 07:15 - cron('15 7 * * 5') + // Every Friday at 21:15 + cron('15 21 * * 5') } options { @@ -25,7 +25,7 @@ pipeline { } } - stage('Post Divendres Nit') { + stage('Post Divendres') { steps { // Securely injects Jenkins credentials as environment variables // Note the added curly braces wrapping the sh block @@ -36,24 +36,25 @@ pipeline { sh """ . venv/bin/activate python3 bsky_post.py "DIVENDRES NIT PER FI!!!!!!!!!!!" \\ - --username "\$BSKY_HANDLE" \\ - --password "\$BSKY_APP_PASSWORD" \\ - --image media/divendres_nit.mp4 \\ + --username "\$BSKY_GROMENAWARE_HANDLE" \\ + --password "\$BSKY_GROMENAWARE_APP_PASSWORD" \\ + --video media/divendres_nit.mp4 \\ --alt "DIVENDRES NIT PER FI!!!!!!!!!!!" \\ --lang ca \\ --service https://eurosky.social \\ --allow-pds-video-fallback - """ + """ + } } } } post { success { - echo '✅ Divendres Nit post published successfully.' + echo '✅ Divendres post published successfully.' } failure { - echo '❌ Divendres Nit post failed.' + echo '❌ Divendres post failed.' } } } \ No newline at end of file