-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
I10.6 - I10.8
Plugin 2.0.1 and older
the checkPointBeforeBuild feature cannot work for a project defined by configpath.
The current implementation is:
WorkItem wi = res.getWorkItem(siProject.getConfigurationPath()); String chkpt = wi.getResult().getField(IAPIFields.RESULTANT).getItem().getId(); listener.getLogger().println("Successfully executed pre-build checkpoint for project " + siProject.getConfigurationPath() + ", new revision is " + chkpt); // Update the siProject to use the new checkpoint as the basis for this build IAPICommand command = CommandFactory.createCommand(IAPICommand.PROJECT_INFO_COMMAND, DescriptorImpl.INTEGRITY_DESCRIPTOR.getConfiguration(serverConfig)); command.addOption(new APIOption(IAPIOption.PROJECT, siProject.getConfigurationPath() + "#forceJump=#b=" + chkpt));
The Integrity API does not allow a build reference && a development path reference.
The simple appending of a e.g. "#forceJump=#b=1.2.3.4" to the given configuration path string in the job configuration will lead to an invalid configuration path.
The current effect is not only that the checkout step fails, but there are also numberous meaningless checkpoints created (caused by the internal retry mechanism)
Sample Log Output including PTC Error Message and Exit Code 128
Building on master in workspace C:\jenkins\workspace\TR\HH\E401_Ref0\SWE_EL\getWS_CPChange Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/changesBuild Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/consolePreparing to execute si projectinfo for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathPreparing to execute pre-build si checkpoint for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathSuccessfully executed pre-build checkpoint for project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath, new revision is 1.52.1.8An API Exception was caught!The project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.8 could not be located on the server mks.de.mycompany.net:7001: MKS125607: Invalid project syntax. MKS125617: You cannot specify twice a configuration for (70_Quellen/project.pj).si projectinfo --user=yygte38 --port=7001 --hostname=mks.de.mycompany.net --project=#/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.8 -- returned exit code 128Retrying after 10 secondsChange Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/changesBuild Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/consolePreparing to execute si projectinfo for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathPreparing to execute pre-build si checkpoint for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathSuccessfully executed pre-build checkpoint for project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath, new revision is 1.52.1.9An API Exception was caught!The project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.9 could not be located on the server mks.de.mycompany.net:7001: MKS125607: Invalid project syntax. MKS125617: You cannot specify twice a configuration for (70_Quellen/project.pj).si projectinfo --user=yygte38 --port=7001 --hostname=mks.de.mycompany.net --project=#/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.9 -- returned exit code 128Retrying after 10 secondsChange Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/changesBuild Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/consolePreparing to execute si projectinfo for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathPreparing to execute pre-build si checkpoint for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathSuccessfully executed pre-build checkpoint for project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath, new revision is 1.52.1.10An API Exception was caught!The project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.10 could not be located on the server mks.de.mycompany.net:7001: MKS125607: Invalid project syntax. MKS125617: You cannot specify twice a configuration for (70_Quellen/project.pj).si projectinfo --user=yygte38 --port=7001 --hostname=mks.de.mycompany.net --project=#/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.10 -- returned exit code 128Retrying after 10 secondsChange Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/changesBuild Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/consolePreparing to execute si projectinfo for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathPreparing to execute pre-build si checkpoint for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathSuccessfully executed pre-build checkpoint for project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath, new revision is 1.52.1.11An API Exception was caught!The project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.11 could not be located on the server mks.de.mycompany.net:7001: MKS125607: Invalid project syntax. MKS125617: You cannot specify twice a configuration for (70_Quellen/project.pj).si projectinfo --user=yygte38 --port=7001 --hostname=mks.de.mycompany.net --project=#/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.11 -- returned exit code 128Retrying after 10 secondsChange Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/changesBuild Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/consolePreparing to execute si projectinfo for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathPreparing to execute pre-build si checkpoint for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathSuccessfully executed pre-build checkpoint for project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath, new revision is 1.52.1.12An API Exception was caught!The project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.12 could not be located on the server mks.de.mycompany.net:7001: MKS125607: Invalid project syntax. MKS125617: You cannot specify twice a configuration for (70_Quellen/project.pj).si projectinfo --user=yygte38 --port=7001 --hostname=mks.de.mycompany.net --project=#/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.12 -- returned exit code 128Retrying after 10 secondsChange Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/changesBuild Log: http://jenkins-qs.de.mycompany.net:8080/job/TR/job/HH/job/E401_Ref0/job/SWE_EL/job/getWS_CP/1/consolePreparing to execute si projectinfo for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathPreparing to execute pre-build si checkpoint for #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPathSuccessfully executed pre-build checkpoint for project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath, new revision is 1.52.1.13An API Exception was caught!The project #/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.13 could not be located on the server mks.de.mycompany.net:7001: MKS125607: Invalid project syntax. MKS125617: You cannot specify twice a configuration for (70_Quellen/project.pj).si projectinfo --user=yygte38 --port=7001 --hostname=mks.de.mycompany.net --project=#/Site1/TR/HH#EL/030_Software/70_Quellen#d=MyDevPath#forceJump=#b=1.52.1.13 -- returned exit code 128
- is duplicated by
-
JENKINS-42010 Issue with executing PTC-MKS integrity SI commands in jenkins
- Resolved
-
JENKINS-42495 Integrity Pugin - Unable to use option "checkpoint before build" on development path
- Closed