Skip to content

Commit a189c5c

Browse files
committed
Jenkinsfile: get k_release from file directly instead of extra env setup
1 parent 7230097 commit a189c5c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Jenkinsfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,7 @@ pipeline {
162162
}
163163
stages {
164164
stage('Checkout SCM') {
165-
steps {
166-
dir("kevm-${env.KEVM_RELEASE_ID}") {
167-
checkout scm
168-
script {
169-
env.K_RELEASE = sh(script: 'cat deps/k_release', returnStdout: true).trim()
170-
}
171-
}
172-
}
165+
steps { dir("kevm-${env.KEVM_RELEASE_ID}") { checkout scm } }
173166
}
174167
stage('Build Ubuntu Bionic Package') {
175168
agent {
@@ -184,7 +177,7 @@ pipeline {
184177
dir("kevm-${env.KEVM_RELEASE_ID}") {
185178
sh '''
186179
sudo apt-get update && sudo apt-get upgrade --yes
187-
curl --location "${env.K_RELEASE}/kframework_5.0.0_amd64_bionic.deb" --output kframework.deb
180+
curl --location "$(cat deps/k_release)/kframework_5.0.0_amd64_bionic.deb" --output kframework.deb
188181
sudo apt-get install ./kframework.deb
189182
cp -r package/debian ./
190183
dpkg-buildpackage --no-sign
@@ -226,7 +219,7 @@ pipeline {
226219
dir("kevm-${env.KEVM_RELEASE_ID}") {
227220
sh '''
228221
sudo pacman -Syu --noconfirm
229-
curl --location "${env.K_RELEASE}/kframework-5.0.0-1-x86_64.pkg.tar.xz" --output kframework.pkg.tar.xz
222+
curl --location "$(cat deps/k_release)/kframework-5.0.0-1-x86_64.pkg.tar.xz" --output kframework.pkg.tar.xz
230223
sudo pacman -U kframework.pkg.tar.xz
231224
cd package
232225
makepkg --noconfirm --syncdeps

0 commit comments

Comments
 (0)