forked from gitopia/gitopia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
26 lines (25 loc) · 692 Bytes
/
Jenkinsfile
File metadata and controls
26 lines (25 loc) · 692 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
pipeline {
agent { label 'base-agent' }
environment {
CREDENTIALS_ID = 'gitopia-jenops'
BUCKET = 'gitopia-jenops-jenkins-artifacts'
PATTERN = 'build/gitopiad'
}
stages {
stage('Building gitopiad binary') {
steps {
sh '''
export PATH=$PATH:/usr/local/go/bin
make build
'''
}
}
stage('Store to GCS') {
steps {
step([$class: 'ClassicUploadStep', credentialsId: env
.CREDENTIALS_ID, bucket: "gs://${env.BUCKET}",
pattern: env.PATTERN])
}
}
}
}