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

CM command is failing in the latest version 4

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • plasticscm-plugin
    • None

      I have used the latest plastic plugin v4.0 and it is failing when I use the default Jenkins checkout

      I tried with the direct cm command but when I apply credentials I am getting an error

       

      Note:- I am using the Docker build environments.

          [JENKINS-67838] CM command is failing in the latest version 4

          krishna added a comment -

          Hi I have tried in slave node machine also and the failure is happening

          PFA for the error when I run in Jenkins

          WARNING: Unknown parameter(s) found for class type 'com.codicesoftware.plugins.hudson.PlasticSCM': useUpdate
          Checking whether tool 'Default' exists in path 'cm'...
          $ cm version
          Plastic SCM tool not found in system at 'cm': Cannot run program "cm": error=2, No such file or directory
          Unpacking https://www.plasticscm.com/download/clientbundle/latest/client-linux.tar.gz to /home/jenkins/agent/tools/plasticscm-cli/Default on bmw-official-docker-ver2-194-swbb3-vg57p-62dr2
          Executing sh script inside container ford-docker of pod bmw-official-docker-ver2-194-swbb3-vg57p-62dr2
          Executing command: "/home/jenkins/agent/tools/plasticscm-cli/Default/cm" "workspace" "list" "--format={wkname}#{path}#{wkid}" "-wks=ssl://plasticscm.aptiv.com:8088" 
          exit
          sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found
          sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found
          Executing sh script inside container ford-docker of pod bmw-official-docker-ver2-194-swbb3-vg57p-62dr2
          Executing command: "/home/jenkins/agent/tools/plasticscm-cli/Default/cm" "workspace" "list" "--format={wkname}#{path}#{wkid}" "-wks=ssl://plasticscm.aptiv.com:8088" 
          exit
          sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found
          sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found
          Executing sh script inside container ford-docker of pod bmw-official-docker-ver2-194-swbb3-vg57p-62dr2
          Executing command: "/home/jenkins/agent/tools/plasticscm-cli/Default/cm" "workspace" "list" "--format={wkname}#{path}#{wkid}" "-wks=ssl://plasticscm.aptiv.com:8088" 
          exit
          sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found
          sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found
          FATAL: The cm command '/home/jenkins/agent/tools/plasticscm-cli/Default/cm workspace list --format={wkname}#{path}#{wkid} -wks=ssl://plasticscm.aptiv.com:8088' failed after 3 retries
          FATAL: The cm command '/home/jenkins/agent/tools/plasticscm-cli/Default/cm workspace list --format={wkname}#{path}#{wkid} -wks=ssl://plasticscm.aptiv.com:8088' failed after 3 retries
          
          

           

          krishna added a comment - Hi I have tried in slave node machine also and the failure is happening PFA for the error when I run in Jenkins WARNING: Unknown parameter(s) found for class type 'com.codicesoftware.plugins.hudson.PlasticSCM' : useUpdate Checking whether tool 'Default' exists in path 'cm' ... $ cm version Plastic SCM tool not found in system at 'cm' : Cannot run program "cm" : error=2, No such file or directory Unpacking https: //www.plasticscm.com/download/clientbundle/latest/client-linux.tar.gz to /home/jenkins/agent/tools/plasticscm-cli/Default on bmw-official-docker-ver2-194-swbb3-vg57p-62dr2 Executing sh script inside container ford-docker of pod bmw-official-docker-ver2-194-swbb3-vg57p-62dr2 Executing command: "/home/jenkins/agent/tools/plasticscm-cli/Default/cm" "workspace" "list" "--format={wkname}#{path}#{wkid}" "-wks=ssl: //plasticscm.aptiv.com:8088" exit sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found Executing sh script inside container ford-docker of pod bmw-official-docker-ver2-194-swbb3-vg57p-62dr2 Executing command: "/home/jenkins/agent/tools/plasticscm-cli/Default/cm" "workspace" "list" "--format={wkname}#{path}#{wkid}" "-wks=ssl: //plasticscm.aptiv.com:8088" exit sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found Executing sh script inside container ford-docker of pod bmw-official-docker-ver2-194-swbb3-vg57p-62dr2 Executing command: "/home/jenkins/agent/tools/plasticscm-cli/Default/cm" "workspace" "list" "--format={wkname}#{path}#{wkid}" "-wks=ssl: //plasticscm.aptiv.com:8088" exit sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found sh: 40: /home/jenkins/agent/tools/plasticscm-cli/Default/cm: not found FATAL: The cm command '/home/jenkins/agent/tools/plasticscm-cli/Default/cm workspace list --format={wkname}#{path}#{wkid} -wks=ssl: //plasticscm.aptiv.com:8088' failed after 3 retries FATAL: The cm command '/home/jenkins/agent/tools/plasticscm-cli/Default/cm workspace list --format={wkname}#{path}#{wkid} -wks=ssl: //plasticscm.aptiv.com:8088' failed after 3 retries  

          krishna added a comment -
          "cm" "log" "cs:-1" "--xml=/h/w/output_5873061305059926149.xml" "--encoding=utf-8" 
          The specified changeset cs:-1 does not exist.
          
          C:\h\w>exit
          Executing cmd script inside container prsrr of pod gen32-w5qlw-869zc-sk6s7
          Microsoft Windows [Version 10.0.17763.1757]
          (c) 2018 Microsoft Corporation. All rights reserved.
          
          C:\h>Executing command: "cm" "log" "cs:-1" "--xml=/h/w/output_5873061305059926149.xml" "--encoding=utf-8"
          

          I ran the build-in Windows docker and provided the command as per the 3.x version in since 4.x command is creating the issue and I faced this error

          krishna added a comment - "cm" "log" "cs:-1" "--xml=/h/w/output_5873061305059926149.xml" "--encoding=utf-8" The specified changeset cs:-1 does not exist. C:\h\w>exit Executing cmd script inside container prsrr of pod gen32-w5qlw-869zc-sk6s7 Microsoft Windows [Version 10.0.17763.1757] (c) 2018 Microsoft Corporation. All rights reserved. C:\h>Executing command: "cm" "log" "cs:-1" "--xml=/h/w/output_5873061305059926149.xml" "--encoding=utf-8" I ran the build-in Windows docker and provided the command as per the 3.x version in since 4.x command is creating the issue and I faced this error

            Unassigned Unassigned
            krishna_1997 krishna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: