From 860bff594b98a5511c68ce16d44d51e99df741ad Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Mon, 30 Mar 2026 17:22:01 +0000 Subject: [PATCH] cleanWS --- jenkins/transitTw | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/jenkins/transitTw b/jenkins/transitTw index 28a7fb9..ee49f1a 100644 --- a/jenkins/transitTw +++ b/jenkins/transitTw @@ -1,12 +1,27 @@ pipeline { agent any - + + options { + skipDefaultCheckout(true) + } + triggers { - // 'H' tells Jenkins to balance the load, running roughly every 30 minutes cron('H/30 * * * *') } stages { + stage('Clean Workspace') { + steps { + cleanWs( + deleteDirs: true, + patterns: [ + [pattern: 'twitter_browser_state.json', type: 'EXCLUDE'], + [pattern: 'twitter2bsky.log', type: 'EXCLUDE'], + [pattern: 'screenshots/**', type: 'EXCLUDE'] + ] + ) + } + } stage('Checkout Code') { steps { // Pulls the code from the repository where this Jenkinsfile lives