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

stash fails in kubernetes container

    XMLWordPrintable

Details

    Description

      This was working before version 0.12

      podTemplate(label: "base", 
      containers: [
      	containerTemplate(name: "go", image: "golang:1.8", ttyEnabled: true, command: "cat")
      ]) {
          node("base") {
          	container(name: "go") {
          		stage("stash fail"){
          		    sh "echo 'something' > ${WORKSPACE}/test.file"
          		    sh "ls -l"
          		    stash name: "test"
          		}
          	}
          }
      }
      

       

      Running on jenkins-slave-hpc81-cqk8x in /home/jenkins/workspace/test-stash
      [Pipeline] {
      [Pipeline] container
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (stash fail)
      [Pipeline] sh
      [test-stash] Running shell script
      + echo something
      [Pipeline] sh
      [test-stash] Running shell script
      + ls -l
      total 4
      -rw------- 1 root root  0 Aug  9 10:19 nohup.out
      -rw-r--r-- 1 root root 10 Aug  9 10:19 test.file
      [Pipeline] stash
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // container
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] }
      [Pipeline] // podTemplate
      [Pipeline] End of Pipeline
      java.nio.file.AccessDeniedException: /home/jenkins/workspace/test-stash/nohup.out
       

      Attachments

        Issue Links

          Activity

            jknurek J Knurek created issue -
            jknurek J Knurek made changes -
            Field Original Value New Value
            Priority Critical [ 2 ] Minor [ 4 ]
            0x89 Martin Sander made changes -
            Assignee Carlos Sanchez [ csanchez ] Martin Sander [ 0x89 ]
            0x89 Martin Sander made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            0x89 Martin Sander made changes -
            Link This issue is related to JENKINS-42048 [ JENKINS-42048 ]
            0x89 Martin Sander made changes -
            0x89 Martin Sander made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            0x89 Martin Sander made changes -
            Assignee Martin Sander [ 0x89 ]
            0x89 Martin Sander made changes -
            Remote Link This issue links to "pull request #212 (Web Link)" [ 17604 ]
            0x89 Martin Sander made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]

            People

              Unassigned Unassigned
              jknurek J Knurek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: