Clean WS
This commit is contained in:
@@ -1,12 +1,27 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
|
options {
|
||||||
|
skipDefaultCheckout(true)
|
||||||
|
}
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
|
||||||
cron('H/30 * * * *')
|
cron('H/30 * * * *')
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
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') {
|
stage('Checkout Code') {
|
||||||
steps {
|
steps {
|
||||||
// Pulls the code from the repository where this Jenkinsfile lives
|
// Pulls the code from the repository where this Jenkinsfile lives
|
||||||
|
|||||||
Reference in New Issue
Block a user