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

Jenkins Pipeline build fails when trying to jenkins docker plugin

    Details

    • Similar Issues:

      Description

      I have Jenkins master running in a docker container and using jenkins docker plugin, I am spawning a jenkins slave (jnlp) on a remote machine. 

      Now, using my declarative pipelines I build my project where i spawn another docker container for builds (inside the slave container spawned by docker plugin)

      This works if the build step has "echo". But when i try to run "sh" in build steps where sh just has "python --version" it gives the following error

      sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-log.txt: No such file or directory
      sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-result.txt.tmp: No such file or directory
      mv: cannot stat '/workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-result.txt.tmp': No such file or directory

       

      I am running jenkinsci/[blueocean|https://hub.docker.com/r/jenkinsci/blueocean/]:1.8.0 for Jenkins master

        Attachments

          Activity

          siddhant_aqr Siddhant Gogri created issue -
          siddhant_aqr Siddhant Gogri made changes -
          Field Original Value New Value
          Description I have Jenkins master running in a docker container and using jenkins docker plugin, I am spawning a jenkins slave (jnlp) on a remote machine. 

          Now, using my declarative pipelines I build my project where i spawn another docker container for builds (inside the slave container spawned by docker plugin)

          This works if the build step has "echo". But when i try to run "sh" in build steps where sh just has "python --version" it gives the following error

          sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-log.txt: No such file or directory
          sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-result.txt.tmp: No such file or directory
          mv: cannot stat '/workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-result.txt.tmp': No such file or directory
          I have Jenkins master running in a docker container and using jenkins docker plugin, I am spawning a jenkins slave (jnlp) on a remote machine. 

          Now, using my declarative pipelines I build my project where i spawn another docker container for builds (inside the slave container spawned by docker plugin)

          This works if the build step has "echo". But when i try to run "sh" in build steps where sh just has "python --version" it gives the following error

          sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-log.txt: No such file or directory
           sh: /workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-result.txt.tmp: No such file or directory
           mv: cannot stat '/workspace/conda-test_master-UI6XA7VOZBDYE3YLPHIIQRESPXQMQIXWNY5GVA2M2NXDSM24G6VA@tmp/durable-250f016b/jenkins-result.txt.tmp': No such file or directory

           

          I am running [jenkinsci|https://hub.docker.com/u/jenkinsci/]/[blueocean|https://hub.docker.com/r/jenkinsci/blueocean/]:1.8.0 for Jenkins master
          zougi Frederic Rousseau made changes -
          Component/s docker-workflow-plugin [ 20625 ]
          ndeloof Nicolas De Loof made changes -
          Assignee Nicolas De Loof [ ndeloof ]
          pjdarton pjdarton made changes -
          Component/s docker-plugin [ 18724 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              siddhant_aqr Siddhant Gogri
            • Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: