-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
32 lines (32 loc) · 779 Bytes
/
Jenkinsfile
File metadata and controls
32 lines (32 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
pipeline {
agent any
environment {
CHROME_BIN = '/usr/bin/google-chrome' // Set as needed for Jenkins slave
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Install Dependencies') {
steps {
sh 'npm install'
}
}
stage('Run Kobo Crawler') {
steps {
// Set LOAD_IMAGES=false to disable image loading if desired
sh 'node dothething.js'
}
}
}
post {
always {
archiveArtifacts artifacts: 'output*.json', allowEmptyArchive: true
}
failure {
echo 'Build failed! Check the logs for details.'
}
}
}