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

Violations plugin incompatible with Slave To Master Access Control

    Details

    • Similar Issues:

      Description

      I have the Violations Plugin (0.7.11 - the latest) installed on Jenkins 1.599, and recently turned on Slave To Master Access Control (desribed on the Jenkins wiki). This resulted in a job getting the exception detailed below. This suggetsts that an update is required for the Violations plugin.

      ERROR: Build step failed with exception
      java.lang.SecurityException: slave may not mkdirs /exports/jenkins_home/jobs/Controls_TopUp_unittests/builds/439/violations
      See http://jenkins-ci.org/security-144 for more details
      	at jenkins.SoloFilePathFilter.noFalse(SoloFilePathFilter.java:31)
      	at jenkins.SoloFilePathFilter.mkdirs(SoloFilePathFilter.java:52)
      	at hudson.FilePath.mkdirs(FilePath.java:2876)
      	at hudson.FilePath.access$800(FilePath.java:191)
      	at hudson.FilePath$36.invoke(FilePath.java:1885)
      	at hudson.FilePath$36.invoke(FilePath.java:1881)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:121)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      	at hudson.remoting.Request$2.run(Request.java:324)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18)
      	at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      	at ......remote call to channel(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
      	at hudson.remoting.Channel.call(Channel.java:752)
      	at hudson.FilePath.act(FilePath.java:978)
      	at hudson.FilePath.act(FilePath.java:967)
      	at hudson.FilePath.write(FilePath.java:1881)
      	at hudson.plugins.violations.generate.ExecuteFilePath.execute(ExecuteFilePath.java:40)
      	at hudson.plugins.violations.generate.GenerateXML.execute(GenerateXML.java:40)
      	at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:122)
      	at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:25)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:121)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      	at hudson.remoting.Request$2.run(Request.java:324)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      	at ......remote call to controls_rhel6(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
      	at hudson.remoting.Channel.call(Channel.java:752)
      	at hudson.FilePath.act(FilePath.java:978)
      	at hudson.FilePath.act(FilePath.java:967)
      	at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74)
      	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
      	at hudson.model.Build$BuildExecution.post2(Build.java:183)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
      	at hudson.model.Run.execute(Run.java:1743)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:89)
      	at hudson.model.Executor.run(Executor.java:240)
      Build step 'Report Violations' marked build as failure
      

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            I think this is the same as JENKINS-27055.

            Show
            jglick Jesse Glick added a comment - I think this is the same as JENKINS-27055 .

              People

              • Assignee:
                peterkittreilly peterkittreilly
                Reporter:
                mwebber Matthew Webber
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: