mathis-tryla / z-devsecops-cloud

Zenika Lille - Mathis - end-of-study internship 2023
0 stars 0 forks source link

Remove MAJOR and MINOR from the pipeline and insert the above mvn command #97

Open mathis-tryla opened 1 year ago

mathis-tryla commented 1 year ago
MVN_VERSION=$(mvn -q \
    -Dexec.executable=echo \
    -Dexec.args='${project.version}' \
    --non-recursive \
    exec:exec)
mvn -q build-helper:parse-version versions:set \
            -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT \
            versions:commit