Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Maven SCM Jazz Provider and Exit Code 53

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?

0 votes



One answer

Permanent link

This is normal. The meaning of exit code 53 is "Indicates that a deliver succeeded, but there were no changes to deliver to the repository". It matches the rest of the messages (no changes to deliver).
https://jazz.net/help-dev/clm/topic/com.ibm.team.scm.doc/topics/r_scm_cli_retcodes.html

0 votes

Comments

The Maven build is marked as 'Failed' when the error appears, which causes our associated Jenkins job to fail as well. Is there a way to mark it as successful or to skip the unsuccessful SCM commands?

Probably Maven Build should treat exit code 52 and 53 similar to 0? Usually, a command will only return 0 as a successful signal, but apparently scm returns 52 and 53 as successful signal as well - you cannot say that they are "unsuccessful SCM commands".

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,381
× 382

Question asked: Jan 11 '17, 8:06 p.m.

Question was seen: 3,771 times

Last updated: Jan 20 '17, 2:55 p.m.

Confirmation Cancel Confirm