Skip to content

Commit 514f710

Browse files
committed
Jenkinsfile: manually checkout to subdir
1 parent eec256c commit 514f710

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Jenkinsfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,20 @@ pipeline {
135135
// }
136136
//}
137137
stage('Deploy') {
138+
agent { label 'docker' }
138139
// when {
139140
// not { changeRequest() }
140141
// branch 'master'
141142
// beforeAgent true
142143
// }
143144
environment {
144145
GITHUB_TOKEN = credentials('rv-jenkins')
146+
RELEASE_ID = '1.0.0b1'
145147
}
146148
stages {
149+
stage('Checkout SCM') {
150+
steps { checkout scm }
151+
}
147152
stage('Build Ubuntu Package') {
148153
agent {
149154
dockerfile {
@@ -153,7 +158,8 @@ pipeline {
153158
}
154159
}
155160
steps {
156-
dir("kevm-0.0.1") {
161+
dir("${env.RELEASE_ID}") {
162+
checkout scm
157163
sh '''
158164
cp -r package/debian ./
159165
dpkg-buildpackage --no-sign
@@ -168,6 +174,7 @@ pipeline {
168174
dockerfile {
169175
dir 'package'
170176
filename 'Dockerfile.arch'
177+
reuseNode true
171178
}
172179
}
173180
steps {
@@ -187,6 +194,7 @@ pipeline {
187194
dockerfile {
188195
dir 'package'
189196
filename 'Dockerfile.arch'
197+
reuseNode true
190198
}
191199
}
192200
steps {

0 commit comments

Comments
 (0)