-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
39 lines (36 loc) · 1018 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
36
37
38
39
node("go") {
stage('prepare') {
checkout scm
sh 'git submodule update --init --recursive --remote'
}
stage('build') {
sh './build.sh'
}
stage('deploy') {
sh 'test `git ls-files -mo consolecolors | wc -l` -gt 0'
sh 'git add .'
sh 'git commit -m "Update `date +%Y-%m-%d`"'
sh 'git tag `date +%Y-%m-%d`'
sh 'git remote add github [email protected]:coderonline/base16-vtrgb.git || echo WARNING: Ignored an error.'
sh 'git push github HEAD:master'
}
}
// node("linux") {
// stage('Execute') {
// sh 'rm -rf output/'
// sh 'pip install --user pybase16_builder'
// sh 'ln -sf .local/bin bin'
// checkout scm
// sh 'pwd && ln -sF .. templates/vtrgb'
// sh 'pybase16 update'
// sh 'pybase16 build -t vtrgb -o output/'
// archiveArtifacts artifacts: 'output/vtrgb/consolecolors/*.vga'
// }
// stage('deploy') {
// sh 'test `git ls-files -m | wc -l` -gt 0'
// sh 'git add .'
// sh 'git commit -m "Update `date +%Y-%m-%d`"'
// sh 'git tag `date +Y-%m-%d`'
// sh 'git push github'
// }
// }