Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29763

Load Workflow Groovy Script from SCM (RTC) is failing with team-concert

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When choosing to load the Workflow Groovy Script direct from the SCM (the Groovy CPS DSL from SCM definition option) the following error occurs:

      RTC : checkout...
      RTC Checkout : Source control setup
      RTC Checkout : Accepting changes into workspace "xxx-main-jenkins-pipeline" ...
      RTC Checkout : Fetching files to fetch destination "/mnt/workspace/XXX-Docker-Workflow@script" ...
      FATAL: RTC : checkout failure: Failed to create /mnt/workspace/XXX-Docker-Workflow@script/.jazz5
      Failed to create /mnt/workspace/XXX-Docker-Workflow@script/.jazz5

      com.ibm.team.build.internal.scm.SourceControlUtility$3: Status INFO: com.ibm.team.filesystem.client code=0 Failed to create /mnt/workspace/XXX-Docker-Workflow@script/.jazz5 null
      at com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:693)
      at com.ibm.team.build.internal.hjplugin.rtc.RepositoryConnection.checkout(RepositoryConnection.java:440)
      at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.checkout(RTCFacade.java:393)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:115)
      at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:165)
      at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:31)
      at hudson.FilePath.act(FilePath.java:989)
      at hudson.FilePath.act(FilePath.java:967)
      at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1107)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:106)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:109)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:58)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:183)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)
      FATAL: RTC : checkout failure: RTC : checkout failure: Failed to create /mnt/workspace/XXX-Docker-Workflow@script/.jazz5
      Failed to create /mnt/workspace/XXX-Docker-Workflow@script/.jazz5

      It looks like an error in the RTC client that fails to create the file location

      The options configured are:

      "Just accept and fetch from a build workspace"

        Attachments

          Activity

          Hide
          clkkishore Krishna Kishore added a comment - - edited

          Issued tracked at RTC work item 364666

          Show
          clkkishore Krishna Kishore added a comment - - edited Issued tracked at RTC work item 364666
          Hide
          clkkishore Krishna Kishore added a comment -

          I am not able to reproduce the issue, the RTC Scm checkout operation is completed and if the specified groovy files is not present Jenkins throws a file not found error but only after the scm checkout as shown below:

          Started by user anonymous
          RTC : checkout...
          RTC Checkout : Source control setup
          RTC Checkout : Accepting changes into workspace "SimpleStream Workflow Build" ...
          RTC Checkout : Fetching files to fetch destination "E:\JenkinsBuilds\workspace@script" ...
          RTC Checkout : Fetching Completed
          ERROR: failed to start build
          java.io.FileNotFoundException: E:\JenkinsBuilds\workspace@script\Simple\myflow1.groovy (The system cannot find the file specified)
          	at java.io.FileInputStream.open(Native Method)
          	at java.io.FileInputStream.<init>(Unknown Source)
          	at hudson.FilePath.read(FilePath.java:1750)
          	at hudson.FilePath.readToString(FilePath.java:1851)
          	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:114)
          	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:58)
          	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:183)
          	at hudson.model.ResourceController.execute(ResourceController.java:98)
          	at hudson.model.Executor.run(Executor.java:374)
          

          If the file is present then the build completes with out errors.

          Show
          clkkishore Krishna Kishore added a comment - I am not able to reproduce the issue, the RTC Scm checkout operation is completed and if the specified groovy files is not present Jenkins throws a file not found error but only after the scm checkout as shown below: Started by user anonymous RTC : checkout... RTC Checkout : Source control setup RTC Checkout : Accepting changes into workspace "SimpleStream Workflow Build" ... RTC Checkout : Fetching files to fetch destination "E:\JenkinsBuilds\workspace@script" ... RTC Checkout : Fetching Completed ERROR: failed to start build java.io.FileNotFoundException: E:\JenkinsBuilds\workspace@script\Simple\myflow1.groovy (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at hudson.FilePath.read(FilePath.java:1750) at hudson.FilePath.readToString(FilePath.java:1851) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:114) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:58) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:183) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) If the file is present then the build completes with out errors.
          Hide
          clkkishore Krishna Kishore added a comment -

          The problem reported here could be due to permissions issue, the error "FATAL: RTC : checkout failure: Failed to create /mnt/workspace/XXX-Docker-Workflow@script/.jazz5". Check the permissions for the path "/mnt/workspace/XXX-Docker-Workflow@script" and make sure that the path is reachable and write permission is present.

          Another issues could be with nested sandboxes, RTC Scm does not allow nesting of .jazz5 folders so make sure their is no .jazz5 folder in the "/mnt/workspace/XXX-Docker-Workflow@script" hierarchy

          Show
          clkkishore Krishna Kishore added a comment - The problem reported here could be due to permissions issue, the error "FATAL: RTC : checkout failure: Failed to create /mnt/workspace/XXX-Docker-Workflow@script/.jazz5". Check the permissions for the path "/mnt/workspace/XXX-Docker-Workflow@script" and make sure that the path is reachable and write permission is present. Another issues could be with nested sandboxes, RTC Scm does not allow nesting of .jazz5 folders so make sure their is no .jazz5 folder in the "/mnt/workspace/XXX-Docker-Workflow@script" hierarchy
          Hide
          nharniman Nigel Harniman added a comment -

          Thanks for the info - we'll check these out.

          Show
          nharniman Nigel Harniman added a comment - Thanks for the info - we'll check these out.
          Hide
          nharniman Nigel Harniman added a comment -

          This fixed the customer's problem - was a permission issue. This can be closed.

          Show
          nharniman Nigel Harniman added a comment - This fixed the customer's problem - was a permission issue. This can be closed.
          Hide
          nharniman Nigel Harniman added a comment -

          Customer fixed permissions issue.

          Show
          nharniman Nigel Harniman added a comment - Customer fixed permissions issue.

            People

            • Assignee:
              clkkishore Krishna Kishore
              Reporter:
              nharniman Nigel Harniman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: