Updated 3CatTw
This commit is contained in:
@@ -63,7 +63,6 @@ pipeline {
|
|||||||
|
|
||||||
stage('Run Script') {
|
stage('Run Script') {
|
||||||
steps {
|
steps {
|
||||||
// Securely injects Jenkins credentials as environment variables
|
|
||||||
withCredentials([
|
withCredentials([
|
||||||
string(credentialsId: 'TWITTER_USERNAME', variable: 'TWITTER_USERNAME'),
|
string(credentialsId: 'TWITTER_USERNAME', variable: 'TWITTER_USERNAME'),
|
||||||
string(credentialsId: 'TWITTER_PASSWORD', variable: 'TWITTER_PASSWORD'),
|
string(credentialsId: 'TWITTER_PASSWORD', variable: 'TWITTER_PASSWORD'),
|
||||||
@@ -73,9 +72,9 @@ pipeline {
|
|||||||
string(credentialsId: 'BSKY_3CAT_APP_PASSWORD', variable: 'BSKY_3CAT_APP_PASSWORD')
|
string(credentialsId: 'BSKY_3CAT_APP_PASSWORD', variable: 'BSKY_3CAT_APP_PASSWORD')
|
||||||
]) {
|
]) {
|
||||||
sh '''
|
sh '''
|
||||||
# Activate the virtual environment and run the script
|
set -euxo pipefail
|
||||||
. venv/bin/activate && \
|
|
||||||
python3 twitter2bsky_daemon.py \
|
"${VENV_DIR}/bin/python" twitter2bsky_daemon.py \
|
||||||
--twitter-username "$TWITTER_USERNAME" \
|
--twitter-username "$TWITTER_USERNAME" \
|
||||||
--twitter-password "$TWITTER_PASSWORD" \
|
--twitter-password "$TWITTER_PASSWORD" \
|
||||||
--twitter-email "$TWITTER_3CAT_EMAIL" \
|
--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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user