1. 09 12月, 2017 9 次提交
  2. 05 12月, 2017 2 次提交
  3. 04 12月, 2017 2 次提交
  4. 03 12月, 2017 2 次提交
  5. 02 12月, 2017 4 次提交
  6. 01 12月, 2017 3 次提交
    • D
      [JENKINS-36088] Use NIO implementations of chmod and mode by default (#3135) · fdccc0e8
      Devin Nusbaum 提交于
      * Use NIO for FilePath#chmod and IOUtils#mode
      
      * Add tests for NIO mode and chmod implementations
      
      * Add test, remove new method, and update JavaDoc
      
      * Provide system property to use native implementations of chmod and mode
      
      * Revert unrelated whitespace modification
      
      * Don't remove exception from throws and put imports in original location
      
      * Fix broken JavaDoc links
      
      * Ignore file type bits (above 0o7777) in Util#modeToPermission
      
      * Use octal for constants and don't include file type bits
      
      * Revert unnecessary changes to TarArchiverTest
      
      * Add assertion that non-permission bits are ignored by chmod
      
      * Use NIO copy with StandardCopyOption.COPY_ATTRIBUTES in copyToWithPermissions where possible
      
      * Catch InvalidPathException and convert it to IOException
      
      * Create utility method for File#toPath and use File#createDirectories after review
      
      * Remove useless calls to toAbsolutePath and getAbsoluteFile
      
      * Fix typos and use octal for constant after review
      
      * Add test for behavior of copyToWithPermission with special bits
      fdccc0e8
    • O
      Add default implementations of deprecated methods of BuilableItem and Item. (#3142) · 88248577
      Oleg Nenashev 提交于
      * Add default implementations to deprecated methods of BuilableItem and Item.
      
      Currently the interface requires the API user to implement already deprecated methods.
      It does not make much sense, and the API could be simplified.
      
      * Address comments from @jglick
      88248577
    • J
      7cbc8f55
  7. 30 11月, 2017 1 次提交
  8. 29 11月, 2017 5 次提交
  9. 28 11月, 2017 3 次提交
  10. 27 11月, 2017 5 次提交
    • O
      Merge pull request #3157 from Jimilian/optimise_start_of_workflow_job · 80b515e9
      Oleg Nenashev 提交于
      If task can be run only on master, use shortcut
      80b515e9
    • G
      update to the newest version · 8bb8057e
      Gentle Yang 提交于
      8bb8057e
    • K
      2e920c7d
    • K
      35b62132
    • B
      Do not force SYNC · 465f85e3
      Baptiste Mathus 提交于
      It might be preferrable from a consistency standpoint,
      but many CLI tests start failing when you force this.
      
      So, as the previous behaviour was not forcing the sync, this seems
      to show there could be unintended behavioural changes in effect.
      
      Possibly, we'll want to address this later, but as the main goal
      here was to make commit() atomic as much as possible, fixing
      this is probably another story anyway.
      
      Note: I was *never* able to reproduce those failures on my machine in
      a normal env dev. It was only visible in CI.
      I finally managed to make it reproducible (but still a bit randomly) by
      using Docker resource constraints, using something like this:
      
      * cd to jenkins local clone
      * `docker run -ti -v m2repo:/root/.m2/repository -v $PWD:/work -v ~/.m2/settings.xml:/root/.m2/settings.xml:ro -v ~/.m2/settings-security.xml:/root/.m2/settings-security.xml:ro --device-write-iops /dev/mapper/fedora-home:40 --device-read-iops /dev/mapper/fedora-home:40  --device-write-bps /dev/mapper/fedora-home:10m --device-read-bps /dev/mapper/fedora-home:10m maven:3.5.2-jdk-8 bash`
      * cd /work
      * `mvn clean install -Dtest=WaitNodeOfflineCommandTest,RunRangeCommandTest -Dfindbugs.skip=true  -DfailIfNoTests=false -Dskip.npm=true`
      
      Failure example:
      
      ```
      ERROR] Tests run: 6, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 55.68OfflineCommandTest
      [ERROR] waitNodeOfflineShouldSucceedOnDisconnectingNode(hudson.cli.WaitNodeOf  <<< FAILURE!
      java.lang.AssertionError:
      
      Expected: <true>
           but: was <false>
              at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
              at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
              at hudson.cli.WaitNodeOfflineCommandTest.waitNodeOfflineShouldSucceedndTest.java:128)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framew
              at org.junit.internal.runners.model.ReflectiveCallable.run(Reflective
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(Framewor
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(Invoke
              at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefor
              at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:542)
              at org.junit.internal.runners.statements.FailOnTimeout$CallableStatem
              at org.junit.internal.runners.statements.FailOnTimeout$CallableStatem
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.lang.Thread.run(Thread.java:748)
      
      [ERROR] waitNodeOfflineShouldSucceedOnDisconnectedNode(hudson.cli.WaitNodeOff <<< FAILURE!
      java.lang.AssertionError
      ```
      465f85e3
  11. 26 11月, 2017 4 次提交