-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
35 lines (31 loc) · 960 Bytes
/
Jenkinsfile
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
33
34
35
pipeline {
agent any
stages {
stage('Checkout') {
steps {
git branch: 'master', url: 'https://github.com/spacebeam/research.git'
}
}
stage('Build') {
steps {
sh 'cd web/luerl.org && nikola build'
}
}
stage('Test (Optional)') {
steps {
sh 'cd web/luerl.org && nikola serve &'
// Add steps to automate tests against your running local server
sh 'kill %1' // Stop the server
}
}
stage('Deploy') {
steps {
// Add your deployment steps here. Examples:
// - rsync to your web server
// - Use a plugin like Publish Over SSH
// - Push to a different Git repository (GitHub Pages, etc.)
sh 'echo "Deployment steps go here."'
}
}
}
}