We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10520a9 commit f0377abCopy full SHA for f0377ab
Jenkinsfile
@@ -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