File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
pipeline {
2
+ environment {
3
+ LONG_REV = """ ${ sh(returnStdout: true, script: 'git rev-parse HEAD').trim()} """
4
+ K_VERSION = """ ${ sh(returnStdout: true, script: 'cat deps/k_release | cut --characters=2-').trim()} """
5
+ }
2
6
agent {
3
7
dockerfile {
4
8
label ' docker'
5
- additionalBuildArgs ' --build-arg K_COMMIT=$(cat deps/k_release | cut --delimiter="-" --field="2") --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g)'
9
+ additionalBuildArgs ' --build-arg K_COMMIT=${K_VERSION} --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g)'
6
10
}
7
11
}
8
12
options {
9
13
ansiColor(' xterm' )
10
14
}
11
- environment {
12
- LONG_REV = """ ${ sh(returnStdout: true, script: 'git rev-parse HEAD').trim()} """
13
- }
14
15
stages {
15
16
stage(' Init title' ) {
16
17
when { changeRequest() }
You can’t perform that action at this time.
0 commit comments