You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using the maven gitflow plugin in conjunction with jenkins. One task is to open a support and a hotfix branch. At a late point in time a jenkins pipeline stage is used to finish the hotfix:
This results in a [ERROR] Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.14.0:hotfix-finish (default-cli) on project myProject: hotfix-finish: fatal: mehrdeutiges Argument 'support/5.85.0...origin/support/5.85.0': unbekannter Commit oder Pfad existiert nicht
AKA ambiguous argument unknown revision or path not in the working tree
Here is why:
hotfix-finish wants to compare support/5.85.0...origin/support/5.85.0 but there is no locally checked out support/5.85.0
This happens because the workspace where the hotfix branch was created is not the same it is about to be closed, its a fresh one on an other jenkins node thats why the branch support/5.85.0 was never checked out. For now ill go with -DfetchRemote=false to skip the comparison of these branches.
The text was updated successfully, but these errors were encountered:
Hi there,
i am using the maven gitflow plugin in conjunction with jenkins. One task is to open a support and a hotfix branch. At a late point in time a jenkins pipeline stage is used to finish the hotfix:
mvn -B -f pom.xml gitflow:hotfix-finish -DhotfixVersion=support/5.85.0/5.85.1-SNAPSHOT
This results in a
[ERROR] Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.14.0:hotfix-finish (default-cli) on project myProject: hotfix-finish: fatal: mehrdeutiges Argument 'support/5.85.0...origin/support/5.85.0': unbekannter Commit oder Pfad existiert nicht
AKA
ambiguous argument unknown revision or path not in the working tree
Here is why:
hotfix-finish wants to compare
support/5.85.0...origin/support/5.85.0
but there is no locally checked outsupport/5.85.0
This happens because the workspace where the hotfix branch was created is not the same it is about to be closed, its a fresh one on an other jenkins node thats why the branch
support/5.85.0
was never checked out. For now ill go with-DfetchRemote=false
to skip the comparison of these branches.The text was updated successfully, but these errors were encountered: