File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,6 @@ def UNIT_RESULTS = "${TEST_RESULTS_FOLDER}/unit"
69
69
*/
70
70
def MASTER_BRANCH = " master"
71
71
72
-
73
- /**
74
- * A command to be run that gets the current revision pulled down
75
- */
76
- def GIT_REVISION_LOOKUP = ' git log -n 1 --pretty=format:%h'
77
-
78
72
/**
79
73
* Variables to check any new commit since the previous successful commit
80
74
*/
@@ -175,12 +169,6 @@ pipeline {
175
169
steps {
176
170
timeout(time : 2 , unit : ' MINUTES' ) {
177
171
script {
178
- // We need to keep track of the current commit revision. This is to prevent the condition where
179
- // the build starts on master and another branch gets merged to master prior to version bump
180
- // commit taking place. If left unhandled, the version bump could be done on latest master branch
181
- // code which would already be ahead of this build.
182
- BUILD_REVISION = sh returnStdout : true , script : GIT_REVISION_LOOKUP
183
-
184
172
// This checks for the [ci skip] text. If found, the status code is 0
185
173
def result = sh returnStatus : true , script : ' git log -1 | grep \' .*\\ [ci skip\\ ].*\' '
186
174
if (result == 0 ) {
You can’t perform that action at this time.
0 commit comments