Skip to content

Commit

Permalink
#968 fix: now we actually use the latest version from metasfresh-parent
Browse files Browse the repository at this point in the history
FRESH-1372	#968 Include webui in the normal rollout process
  • Loading branch information
metas-ts committed Feb 23, 2017
1 parent 43a5ae6 commit 697e0fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ node('agent && linux')
checkout scm; // i hope this to do all the magic we need
sh 'git clean -d --force -x' // clean the workspace

// update the parent-pom version of our de.metas.parent/pom.xml to the latest from the metasfresh-parent project
// --non-recursive is not strictly needed, but it will spare us a lot of messages saying "building blah..Project's parent is part of the reactor"
sh "mvn --settings $MAVEN_SETTINGS --file de.metas.parent/pom.xml --batch-mode --non-recursive -DallowSnapshots=false -DgenerateBackupPoms=true ${MF_MAVEN_TASK_RESOLVE_PARAMS} versions:update-parent"

// set the artifact version of everything below de.metas.parent/pom.xml
// do not set versions for de.metas.endcustomer.mf15/pom.xml, because that one will be build in another node!
sh "mvn --settings $MAVEN_SETTINGS --file de.metas.parent/pom.xml --batch-mode -DnewVersion=${BUILD_VERSION} -DallowSnapshots=false -DgenerateBackupPoms=true -DprocessDependencies=true -DprocessParent=true -DexcludeReactor=true -DprocessPlugins=true -Dincludes=\"de.metas*:*\" ${MF_MAVEN_TASK_RESOLVE_PARAMS} versions:set"
Expand All @@ -352,6 +356,11 @@ node('agent && linux')
}
else
{

// update the parent-pom version of our de.metas.esb/pom.xml to the latest from the metasfresh-parent project
// --non-recursive is not strictly needed, but it will spare us a lot of messages saying "building blah..Project's parent is part of the reactor"
sh "mvn --settings $MAVEN_SETTINGS --file de.metas.esb/pom.xml --batch-mode --non-recursive -DallowSnapshots=false -DgenerateBackupPoms=true ${MF_MAVEN_TASK_RESOLVE_PARAMS} versions:update-parent"

// set the artifact version of everything below de.metas.esb/pom.xml
sh "mvn --settings $MAVEN_SETTINGS --file de.metas.esb/pom.xml --batch-mode -DnewVersion=${BUILD_VERSION} -DallowSnapshots=false -DgenerateBackupPoms=true -DprocessDependencies=true -DprocessParent=true -DexcludeReactor=true -Dincludes=\"de.metas*:*\" ${MF_MAVEN_TASK_RESOLVE_PARAMS} versions:set"

Expand Down

0 comments on commit 697e0fc

Please sign in to comment.