File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ pipeline {
159
159
if (isMajor) {
160
160
// major release, create '.x' branch
161
161
sh(script : """
162
+ git fetch origin ${ RELEASE_TAG} # ensure remote tag is fetched for local checkout
162
163
git checkout ${ RELEASE_TAG}
163
164
git checkout -b ${ BRANCH_DOT_X}
164
165
""" )
@@ -169,6 +170,7 @@ pipeline {
169
170
// fix doc or release notes should also have been applied to master/stable branch we are releasing from
170
171
sh(script : """
171
172
git fetch origin ${ BRANCH_DOT_X} # ensure remote branch is fetched for local checkout
173
+ git fetch origin ${ RELEASE_TAG} # ensure remote tag is fetched for local checkout
172
174
git checkout --track origin/${ BRANCH_DOT_X}
173
175
git reset --hard ${ RELEASE_TAG}
174
176
""" )
You can’t perform that action at this time.
0 commit comments