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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • docker, pipeline
    • None
    • Jenkins: 2.164.2, Docker controller, Windows 10 Pro agent.

      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
       

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

              Created:
              Updated: