From 036b5483b3c069bd2f7c5879d54db784bbc3ce0e Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Fri, 17 Apr 2026 17:12:04 +0200 Subject: [PATCH] beteve migrated --- jenkins/beteveTw | 3 +- jenkins/btvBasicsTw | 77 ------------------------------------------- jenkins/btvEsportsTw | 3 +- jenkins/btvLlenguaTw | 3 +- jenkins/btvNoticiesTw | 3 +- 5 files changed, 8 insertions(+), 81 deletions(-) delete mode 100644 jenkins/btvBasicsTw diff --git a/jenkins/beteveTw b/jenkins/beteveTw index f229114..5f27e8e 100644 --- a/jenkins/beteveTw +++ b/jenkins/beteveTw @@ -68,7 +68,8 @@ pipeline { --twitter-email "$TWITTER_BETEVE_EMAIL" \ --twitter-handle "$TWITTER_BETEVE_HANDLE" \ --bsky-handle "$BSKY_BETEVE_HANDLE" \ - --bsky-password "$BSKY_BETEVE_APP_PASSWORD" + --bsky-password "$BSKY_BETEVE_APP_PASSWORD" \ + --bsky-base-url https://eurosky.social ''' } } diff --git a/jenkins/btvBasicsTw b/jenkins/btvBasicsTw deleted file mode 100644 index 21d8474..0000000 --- a/jenkins/btvBasicsTw +++ /dev/null @@ -1,77 +0,0 @@ -pipeline { - agent any - - options { - timeout(time: 15, unit: 'MINUTES') - timestamps() - buildDiscarder(logRotator(numToKeepStr: '10')) - disableConcurrentBuilds() - } - - triggers { - cron('H/30 * * * *') - } - - stages { - stage('Checkout Code') { - steps { - // Pulls the code from the repository where this Jenkinsfile lives - checkout scm - } - } - - stage('Setup Python & Install Dependencies') { - steps { - sh ''' - set -e # Exit immediately if a command exits with a non-zero status - - # Create a virtual environment named 'venv' - python3 -m venv venv - - # Activate the virtual environment and install dependencies - . venv/bin/activate && \ - pip install --upgrade pip && \ - pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy - - # Check if moviepy is installed - pip list | grep moviepy || { echo 'MoviePy installation failed!'; exit 1; } - - # Check if FFmpeg is installed - ffmpeg -version || { echo 'FFmpeg is not installed!'; exit 1; } - - # Verify that moviepy can be imported - python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; } - - # Install the local browser binaries for this environment - playwright install chromium - ''' - } - } - - stage('Run Script') { - steps { - // Securely injects Jenkins credentials as environment variables - withCredentials([ - string(credentialsId: 'TWITTER_USERNAME', variable: 'TWITTER_USERNAME'), - string(credentialsId: 'TWITTER_PASSWORD', variable: 'TWITTER_PASSWORD'), - string(credentialsId: 'TWITTER_BETEVE_EMAIL', variable: 'TWITTER_BETEVE_EMAIL'), - string(credentialsId: 'TWITTER_BTVBASICS_HANDLE', variable: 'TWITTER_BTVBASICS_HANDLE'), - string(credentialsId: 'BSKY_BETEVE_HANDLE', variable: 'BSKY_BETEVE_HANDLE'), - string(credentialsId: 'BSKY_BETEVE_APP_PASSWORD', variable: 'BSKY_BETEVE_APP_PASSWORD') - ]) { - sh ''' - # Activate the virtual environment and run the script - . venv/bin/activate && \ - python3 twitter2bsky_daemon.py \ - --twitter-username "$TWITTER_USERNAME" \ - --twitter-password "$TWITTER_PASSWORD" \ - --twitter-email "$TWITTER_BETEVE_EMAIL" \ - --twitter-handle "$TWITTER_BTVBASICS_HANDLE" \ - --bsky-handle "$BSKY_BETEVE_HANDLE" \ - --bsky-password "$BSKY_BETEVE_APP_PASSWORD" - ''' - } - } - } - } -} \ No newline at end of file diff --git a/jenkins/btvEsportsTw b/jenkins/btvEsportsTw index 8ce5fd6..fec8b0e 100644 --- a/jenkins/btvEsportsTw +++ b/jenkins/btvEsportsTw @@ -68,7 +68,8 @@ pipeline { --twitter-email "$TWITTER_BETEVE_EMAIL" \ --twitter-handle "$TWITTER_BTVESPORTS_HANDLE" \ --bsky-handle "$BSKY_BETEVE_HANDLE" \ - --bsky-password "$BSKY_BETEVE_APP_PASSWORD" + --bsky-password "$BSKY_BETEVE_APP_PASSWORD" \ + --bsky-base-url https://eurosky.social ''' } } diff --git a/jenkins/btvLlenguaTw b/jenkins/btvLlenguaTw index e714828..a872abc 100644 --- a/jenkins/btvLlenguaTw +++ b/jenkins/btvLlenguaTw @@ -68,7 +68,8 @@ pipeline { --twitter-email "$TWITTER_BETEVE_EMAIL" \ --twitter-handle "$TWITTER_BTVLLENGUA_HANDLE" \ --bsky-handle "$BSKY_BETEVE_HANDLE" \ - --bsky-password "$BSKY_BETEVE_APP_PASSWORD" + --bsky-password "$BSKY_BETEVE_APP_PASSWORD" \ + --bsky-base-url https://eurosky.social ''' } } diff --git a/jenkins/btvNoticiesTw b/jenkins/btvNoticiesTw index f3b7653..c533a3c 100644 --- a/jenkins/btvNoticiesTw +++ b/jenkins/btvNoticiesTw @@ -68,7 +68,8 @@ pipeline { --twitter-email "$TWITTER_BETEVE_EMAIL" \ --twitter-handle "$TWITTER_BTVNOTICIES_HANDLE" \ --bsky-handle "$BSKY_BETEVE_HANDLE" \ - --bsky-password "$BSKY_BETEVE_APP_PASSWORD" + --bsky-password "$BSKY_BETEVE_APP_PASSWORD" \ + --bsky-base-url https://eurosky.social ''' } }