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

Cannot replay pipelines - files are read-only

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Postponed
    • Icon: Critical Critical
    • core

      Hello, since I recently updated, I cannot replay a pipeline. It seems like the pipeline library files are checked-out read-only and the replay tries to modify them.

      In the error trace below, common.groovy is a common groovy library used by all the pipelines I use.

      The library file is loaded for the multi-branch as Modern SCM/Helix Library.

       

      This was confirmed to happen on 1.8.9 and 1.8.10 of the plugin.

       

      Replacing contents of vars/common.groovy
       java.nio.file.AccessDeniedException: D:\build\jobs\servlets-release-multi\project-main\builds\10\libs\jenkins_servlets\vars\common.groovy
       at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
       at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
       at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
       at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
       at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
       at java.nio.file.Files.newOutputStream(Files.java:216)
       at hudson.FilePath$Write.invoke(FilePath.java:2051)
       at hudson.FilePath$Write.invoke(FilePath.java:2040)
       at hudson.FilePath.act(FilePath.java:1047)
       at hudson.FilePath.act(FilePath.java:1025)
       at hudson.FilePath.write(FilePath.java:2038)
       at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:164)
       at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:134)
       at org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
       at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
       at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
       at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
       at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
       at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
       at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
       at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
       at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
       at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:131)
       at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:125)
       at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:560)
       at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:521)
       at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:325)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
       org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
       WorkflowScript: Loading libraries failed
      1 error
      at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
       at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
       at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
       at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
       at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
       at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
       at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
       at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
       at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
       at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:131)
       at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:125)
       at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:560)
       at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:521)
       at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:325)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
       Finished: FAILURE
        
      

       

            Unassigned Unassigned
            gpetit Gaspard Petit
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: