Skip to content

Commit 334b479

Browse files
committed
[RelEng] Make check for left-over previous version more robust
1 parent dc111e1 commit 334b479

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

JenkinsJobs/Releng/prepareNextDevCycle.jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,14 @@ pipeline {
263263
// Run simple clean build to verify that at least all parent versions are updated correctly
264264
sh 'mvn clean'
265265
// search for leftover occurrences of the previous release version
266-
sh '''#!/bin/bash -e
266+
sh '''#!/bin/bash -xe
267267
matchingFiles=$(grep --recursive --files-with-matches \
268268
--include pom.xml \
269269
--include MANIFEST.MF \
270270
--include feature.xml \
271271
--include \\*.product \
272272
--include \\*.sh \
273-
--fixed-strings "${PREVIOUS_RELEASE_VERSION}")
273+
--perl-regexp "${PREVIOUS_RELEASE_VERSION//./\\\\.}(?!\\d)")
274274
# The eclipse-platform-parent/pom.xml contains the previous version in the baseline repository variable
275275
if [[ -z "${matchingFiles}" ]] || [[ "${matchingFiles}" == 'eclipse-platform-parent/pom.xml' ]]; then
276276
echo "No unexpected references to previous version ${PREVIOUS_RELEASE_VERSION} found."

0 commit comments

Comments
 (0)