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

Pipeline shell fails with jenkins-result.txt.tmp: No such file or directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: docker, pipeline
    • Labels:
      None
    • Environment:
      Jenkins: 2.164.2, Docker controller, Windows 10 Pro agent.
    • Similar Issues:

      Description

      When using pipelines, we have a consistent failure after the git clone is done and we move into the shell stage. This seems like a recurrence of previously fixed problems discussed in the Jenkins-Sci group.

       

      stage('release') {
      	when {
      		branch 'production'
      	}
      	steps {
      		lock(resource: 'nsgit-prod-build') {
      		node('glass') {
      		        checkout([$class: 'GitSCM',
      		            branches: [[name: '*/production']],
      		            extensions: [
      		            	[$class: 'CleanBeforeCheckout'],
      		            	[$class: 'SubmoduleOption', 
      disableSubmodules: false, parentCredentials: true,
      				            		recursiveSubmodules: true, reference: '', trackingSubmodules: false]],
      				            	doGenerateSubmoduleConfigurations: false, submoduleCfg: [],
      				            userRemoteConfigs: [[credentialsId: 'me', url: 'git@bitbucket.org:group/repo.git']]])
      			        	withEnv(['COMP_ROOT=C:\\Program Files (x86)\\HPE NonStop\\J06.20',
      			        		'NONSTOPOSVERSION=J06.20',
      			        		'NSDEE_SYS_INCLUDE_PATH=C:\\Program Files (x86)\\HPE NonStop\\J06.20\\usr\\include',
      			        		'NSDEE_SYS_INCLUDE_PATH_ESC=C:\\\\Program Files (x86)\\\\HPE NonStop\\\\J06\\.20\\\\usr\\\\include',
      			        		'PATH+WHATEVER=C:\\Program Files (x86)\\HPE NonStop\\J06.20\\usr\\bin;C:\\cygwin\\bin;']) {
      			        		
      				            sh 'make -f Makefile.nsgit.Nsdee'
      				            sh 'make -f Makefile.nsgit.Nsdee clean'
      					    }
      

      The clone works fine.

      Fails at the first sh. This used to work reliably for months. We took an image upgrade about a week ago and had one successful run, then this started happening. Wiping out Jenkins on the agent or moving it to a different location makes no difference. This runs as an SSH script inside cygwin.
      sh: /cygwin/c/Users/antsle/jenkins/workspace/NSGit-Core-Pipeline_production@tmp/durable-906ae3cb/jenkins-log.txt: No such file or directory
      sh: /cygwin/c/Users/antsle/jenkins/workspace/NSGit-Core-Pipeline_production@tmp/durable-906ae3cb/jenkins-result.txt.tmp: No such file or directory
      mv: cannot stat '/cygwin/c/Users/antsle/jenkins/workspace/NSGit-Core-Pipeline_production@tmp/durable-906ae3cb/jenkins-result.txt.tmp': No such file or directoryprocess apparently never started in /cygwin/c/Users/antsle/jenkins/workspace/NSGit-Core-Pipeline_production@tmp/durable-906ae3cb
       

        Attachments

          Activity

          Hide
          rsbeckerca Randall Becker added a comment -

          I was able to get past this by changing the configuration to use a Windows form of the Remote Root Directory as

          C:\\Users\\antsle\\jenkins
          

          instead of what previously worked for months

          /cygwin/c/Users/antsle/jenkins
          

          Has there been a behavioural change in Windows agents that caused this to break? I am fine with dropping the urgency of this to something more normal.

          Show
          rsbeckerca Randall Becker added a comment - I was able to get past this by changing the configuration to use a Windows form of the Remote Root Directory as C:\\Users\\antsle\\jenkins instead of what previously worked for months /cygwin/c/Users/antsle/jenkins Has there been a behavioural change in Windows agents that caused this to break? I am fine with dropping the urgency of this to something more normal.

            People

            • Assignee:
              Unassigned
              Reporter:
              rsbeckerca Randall Becker
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: