Skip to content

Commit f0377ab

Browse files
committed
Add initial Jenkinsfile
1 parent 10520a9 commit f0377ab

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Jenkinsfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
properties([
2+
buildDiscarder(logRotator(daysToKeepStr: '14')),
3+
disableConcurrentBuilds(),
4+
pipelineTriggers([
5+
cron('H H * * *'),
6+
]),
7+
])
8+
9+
node {
10+
dir('bashbrew') {
11+
stage('Checkout') {
12+
checkout scm
13+
}
14+
15+
ansiColor('xterm') {
16+
stage('Build') {
17+
sh '''
18+
docker build -t "bashbrew:$BRANCH_NAME" --pull -f Dockerfile.release .
19+
rm -rf bin
20+
docker run -i --rm "bashbrew:$BRANCH_NAME" tar -c bin | tar -xv
21+
'''
22+
}
23+
}
24+
25+
dir('bin') {
26+
stage('Archive') {
27+
archiveArtifacts(
28+
artifacts: '**',
29+
fingerprint: true,
30+
onlyIfSuccessful: true,
31+
)
32+
}
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)