update integration tests to new root pom... (#402)

* update integration tests to new root pom version

Change-Id: Ic155888a0960ffcd2b26f7bf87373d260f655a2c
Signed-off-by: Nick Boldt <nboldt@redhat.com>

* fix poms that point to obsolete version 7.58.0-SNAPSHOT

Change-Id: I5854752288fec4ea774b27365770558b0d8946db
Signed-off-by: Nick Boldt <nboldt@redhat.com>

Signed-off-by: Nick Boldt <nboldt@redhat.com>
pr-update-base-images-1671237344
Nick Boldt 2022-12-16 11:03:12 -04:00 committed by GitHub
parent 23e5b5f891
commit a0c25fe332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 4 deletions

View File

@ -373,12 +373,20 @@ bumpVersion() {
if [[ $RELEASE_CHE_PARENT = "true" ]]; then
mvn versions:update-parent -DgenerateBackupPoms=false -DallowSnapshots=true -DparentVersion=[${VERSION_CHE_PARENT}]
fi
# compute current version of root pom
current_root_pom_version=$(grep "<che.version>" pom.xml | sed -r -e "s#.+<che.version>([^<>]+)</che.version>.*#\1#")
mvn versions:set -DgenerateBackupPoms=false -DallowSnapshots=true -DnewVersion=$1
sed -i -e "s#<che.version>.*<\/che.version>#<che.version>$1<\/che.version>#" pom.xml
pushd typescript-dto >/dev/null
sed -i -e "s#<che.version>.*<\/che.version>#<che.version>${1}<\/che.version>#" dto-pom.xml
sed -i -e "/<groupId>org.eclipse.che.parent<\/groupId>/ { n; s#<version>.*<\/version>#<version>${VERSION_CHE_PARENT}<\/version>#}" dto-pom.xml
popd >/dev/null
# update integration tests to new root pom version
find . -name "pom.xml" -exec sed -i {} -r -e "s@<version>${current_root_pom_version}</version>@<version>$1</version>@g" \;
# run mvn license format, in case some files that have old license headers have been updated
mvn license:format
commitChangeOrCreatePR $1 $2 "pr-${2}-to-${1}"

View File

@ -17,7 +17,7 @@
<parent>
<artifactId>integration-tests-parent</artifactId>
<groupId>org.eclipse.che.core</groupId>
<version>7.58.0-SNAPSHOT</version>
<version>7.59.0-SNAPSHOT</version>
</parent>
<artifactId>cascade-removal</artifactId>
<name>Integration Tests :: Cascade Removal</name>

View File

@ -17,7 +17,7 @@
<parent>
<artifactId>integration-tests-parent</artifactId>
<groupId>org.eclipse.che.core</groupId>
<version>7.58.0-SNAPSHOT</version>
<version>7.59.0-SNAPSHOT</version>
</parent>
<artifactId>mysql-tck</artifactId>
<packaging>jar</packaging>

View File

@ -17,7 +17,7 @@
<parent>
<artifactId>che-master-parent</artifactId>
<groupId>org.eclipse.che.core</groupId>
<version>7.58.0-SNAPSHOT</version>
<version>7.59.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>integration-tests-parent</artifactId>

View File

@ -17,7 +17,7 @@
<parent>
<artifactId>integration-tests-parent</artifactId>
<groupId>org.eclipse.che.core</groupId>
<version>7.58.0-SNAPSHOT</version>
<version>7.59.0-SNAPSHOT</version>
</parent>
<artifactId>postgresql-tck</artifactId>
<packaging>jar</packaging>