Hello,
We're trying to use the Maven Release Plugin with the Jazz SCM Provider, however we're having a few problems.
We're getting Exit Code 53 when trying to execute the below command:
mvn -B -Dresume=false -DworkingDirectory=D:/tmp/maven -DignoreSnapshots=true release:prepare release:perform
Below is the debug output from Maven.
[DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
[DEBUG] ScmTagPhase :: scmTagParameters scmRevision null
[DEBUG] ScmTagPhase :: fileSet basedir = D:\Maven; files = []
[DEBUG] Executing status command...
[INFO] Executing: cmd.exe /X /C "scm status --username *** --password --wide"
[INFO] Working directory: D:\Maven
[DEBUG] Consumed line :Workspace: (1014) "TestProj Jenkins Test Workspace" <-> (1015) "TestProj Jenkins Test"
[DEBUG] Successfully parsed "Workspace:" line:
[DEBUG] workspaceAlias = 1014
[DEBUG] workspace = TestProj Jenkins Test Workspace
[DEBUG] streamAlias = 1015
[DEBUG] stream = TestProj Jenkins Test
[DEBUG] Consumed line : Component: (1016) "TestProj Jenkins Test"
[DEBUG] Successfully parsed "Component:" line:
[DEBUG] componentAlias = 1016
[DEBUG] component = TestProj Jenkins Test
[DEBUG] Consumed line : Baseline: (1017) 1 "Initial Baseline"
[DEBUG] Successfully parsed "Baseline:" line:
[DEBUG] baselineAlias = 1017
[DEBUG] baselineId = 1
[DEBUG] baseline = Initial Baseline
[DEBUG] There are no differences
[DEBUG] Executing tag command...
[DEBUG] Creating Snapshot...
[INFO] Executing: cmd.exe /X /C "scm create snapshot --repository-uri https://rational:9443/ccm --username *** --password --name testproj-root-1.13.0 --description "[maven-release-plugin] copy for tag testproj-root-1.13.0" testproj-root-1.12.0"
[INFO] Working directory: D:\Maven
[DEBUG] Consumed line :Snapshot (1041) "testproj-root-1.13.0" successfully created
[DEBUG] Consumed line :Baseline (1027) "calc-5.7501" successfully included
[DEBUG] Consumed line :Baseline (1028) "testproj-root-1.10.0" successfully included
[DEBUG] Creating Workspace from Snapshot...
[INFO] Executing: cmd.exe /X /C "scm create workspace --repository-uri https://rational:9443/ccm --username *** --password testproj-root-1.13.0 --snapshot testproj-root-1.13.0"
[INFO] Working directory: D:\Maven
[DEBUG] Consumed line :Workspace (1042) "testproj-root-1.13.0" successfully created
[DEBUG] Promoting and delivering...
[DEBUG] Delivering...
[INFO] Executing: cmd.exe /X /C "scm deliver --repository-uri https://rational:9443/ccm --username *** --password --source testproj-root-1.13.0 --target "TestProj Jenkins Test""
[INFO] Working directory: D:\Maven
[DEBUG] Consumed line :Nothing to deliver. No outgoing changes were found.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] testproj-root ........................................... FAILURE [01:18 min]
[INFO] testproj-orm ............................. SKIPPED
[INFO] testproj-common .......................... SKIPPED
[INFO] testproj-business ........................ SKIPPED
[INFO] testproj-webservice ...................... SKIPPED
[INFO] testproj-webapp .......................... SKIPPED
[INFO] testproj-ear ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:19 min
[INFO] Finished at: 2017-01-12T08:36:44+08:00
[INFO] Final Memory: 32M/74M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project testproj-root: Unable to tag SCM
[ERROR] Provider message:
[ERROR] Error code for Jazz SCM deliver command - 53
[ERROR] Command output:
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project testproj-root: Unable to tag SCM
Provider message:
Error code for Jazz SCM deliver command - 53
I tried adding "-DsuppressCommitBeforeTag=true" to the command but instead get the error "Cannot perform a remote tag or branch without committing the working copy first.".
Does anyone have any ideas as to why this might be happening?