Updated 3CatTw

This commit is contained in:
2026-04-14 19:30:01 +00:00
parent 3fc74cb008
commit e3e443c0c0

View File

@@ -63,7 +63,6 @@ pipeline {
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'),
@@ -73,9 +72,9 @@ pipeline {
string(credentialsId: 'BSKY_3CAT_APP_PASSWORD', variable: 'BSKY_3CAT_APP_PASSWORD')
]) {
sh '''
# Activate the virtual environment and run the script
. venv/bin/activate && \
python3 twitter2bsky_daemon.py \
set -euxo pipefail
"${VENV_DIR}/bin/python" twitter2bsky_daemon.py \
--twitter-username "$TWITTER_USERNAME" \
--twitter-password "$TWITTER_PASSWORD" \
--twitter-email "$TWITTER_3CAT_EMAIL" \
@@ -87,4 +86,11 @@ pipeline {
}
}
}
post {
always {
// Optional: keep logs/artifacts if your script writes any
archiveArtifacts artifacts: '*.log, *.json', allowEmptyArchive: true
}
}
}