Skip to content
Snippets Groups Projects
Commit acc5b34a authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4772 [chore] read version of formcycle adapter interface from pom

parent 5c9c5c40
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ pipeline {
SH_SUCCESS_STATUS_CODE = 0
VORGANG_MANAGER_INTERFACE_VERSION="2.0.0"
FORMCYCLE_INTERFACE_VERSION="2.2.0"//readFormCycleInterfaceVersion()
FORMCYCLE_INTERFACE_VERSION=readFormCycleInterfaceVersion()
}
options {
......@@ -180,7 +180,7 @@ Void configureGit(String directory) {
}
String readFormCycleInterfaceVersion() {
return sh(returnStdout: true, script: 'xmlstarlet sel -N w="http://maven.apache.org/POM/4.0.0" -t -v "//w:project/w:version" -n pom.xml').trim()
return sh(returnStdout: true, script: 'xmlstarlet sel -N w="http://maven.apache.org/POM/4.0.0" -t -v "//w:project/w:properties/w:formcycle-adapter-interface.version" -n pom.xml').trim()
}
Boolean isSnapshotVersion(List versions) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment