1. 15 12月, 2017 5 次提交
    • JenkinsInChina's avatar
      Add Chinese translation for slave agent configure · eb7582a5
      JenkinsInChina 提交于
      eb7582a5
    • K
      [JENKINS-47324] - Reduce usage of File.mkdirs() in FilePath and IOUtils (#3173) · 09bcc5d6
      Krishan Bhasin 提交于
      * Move an instance of renameTo() to Files.move()
      
      * Replace an instance of File.toURI() with an instance of Path.toUri()
      
      * Replace mkdirs() with Files.createDirectories()
      Replace mkdir() with Files.createTempDirectory()
      
      * Undo addition of createTempDirectory() as per review comments
      
      * Return to use of FilePath#mkdirs(File) and instead modify it to use the new API.
      
      * Undo addition of toPath() in a URI conversion as it brings no benefits.
      
      * Replace new uses of toPath() with Util.fileToPath() to pre-handle runtime exceptions
      
      * Remove * import.
      move mkdirs() to using FilePath method instead of File method.
      
      * Make IOUtils.mkdirs(File) use Java7 API calls
      
      * Add back accidentally removed imports.
      
      * Fixed use of wildcard import
      
      * Use utility method fileToPath() to handle potential exception thrown
      09bcc5d6
    • O
      Merge pull request #3194 from Jochen-A-Fuerbacher/fixScriptConsoleTranslation · b4ff724c
      Oleg Nenashev 提交于
      Fixed typo in German translation.
      b4ff724c
    • O
      Introduce the new UserIdCause constructor, which accepts userId as an argument. (#3162) · 14605fea
      Oleg Nenashev 提交于
      * Introduce UserIdCause constructor, which accepts userId as an argument.
      
      * [JENKINS-48467] - UserIdCuase: Add issue link in the TODO comment
      14605fea
    • W
      [JENKINS-27027] Notify the SecurityListener on authentication (#3074) · b7f42b2e
      Wadeck Follonier 提交于
      * [JENKINS-27026] Notify the SecurityListener in case of Token based authentication success
      - due the current version of the method, the UserDetails required for the event was not accessible. In order to stay with the same API in SecurityListener, two "protected" methods were created to split the job and let the UserDetails accessible
      
      * - add test to ensure the SecurityListener is called for REST Token but also for regular basic auth
      
      * - remove the comment about the split, will be put in GitHub comment instead
      
      * - add check for anonymous call instead of just putting a comment
      - remove the constructor in the dummy
      - add link to PR from Daniel to simplify a call
      
      * - separate the before/after to save one clear and be more explicit
      - put more meaning in the assertLastEventIs method by explicitly say we will remove the last event
      
      * - add comment about why we do not fire the "failedToAuthenticated" in the case of an invalid token (tips: it's because it could be a valid password)
      
      * - also add the authenticated trigger on legacy filter as pointed by Ivan
      
      * - add support of event on CLI remoting authentication
      - adjust tests by moving the helper class used to spy on events
      
      * - as mentioned Yvan, the code had some problems with null checking, so the approach is changed in order to encapsulate all that internal mechanism
      
      * - add javadoc
      - open the getUserDetailsForImpersonation from the User (will let the SSHD module to retrieve UserDetails from that)
      
      * - remove single quote in log messages
      
      * - basic corrections requested by Jesse
      
      * - just another typo
      
      * - adjust the javadoc for SecurityListener events
      
      * - add the link to Jenkins#Anonymous
      
      * - add link (not using see)
      
      * - update comment on the isAnonymous as we (me + Oleg) do not find a best place at the moment
      
      * - put the new method isAnonymous in ACL instead of Functions
      
      * - little typo
      - add requirement about the SecurityContext authentication
      b7f42b2e
  2. 14 12月, 2017 12 次提交
  3. 13 12月, 2017 2 次提交
  4. 12 12月, 2017 5 次提交
  5. 10 12月, 2017 4 次提交
    • V
      [FIXES JENKINS-47439] Setup wizard does not resume after restart (#3166) · 30ab4481
      Vincent Latombe 提交于
      * [JENKINS-47439] Add a failing test
      
      On first startup, the setup wizard goes into state NEW and the filter to
      force display the setup wizard is installed.
      
      On second startup, the setup wizard goes into state RESTART (which
      assumes the setup wizard is done), and the setup wizard is skipped
      completely.
      
      This test expects that state NEW is retained upon restart when nothing
      is done.
      
      * [JENKINS-47439] Persist InstallState
      
      In some cases, the heuristics to determine the current setup wizard state are
      fragile. It is safer to persist the install state so that upon restart,
      the setup wizard can resume where it was left off.
      
      * Missing javadoc and since for new public methods
      
      * s/XXX/FIXME/
      
      * Missed that one
      
      * Setup wizard filter should be removed when entering a state where setup is complete
      
      * Use parameterized logging
      
      * Improvements over previous impl
      
      * Removed static isUsingSecurityToken. Now only determined from install
      state.
      * Call onInstallStateUpdate before InstallState#initializeState as the
      latter can update state.
      
      * Triggering a new build
      30ab4481
    • O
      Merge pull request #3183 from jglick/mock-hell · 18d7ed5a
      Oleg Nenashev 提交于
      Updating Powermock and Objenesis to avoid Mockito/Hamcrest library mismatches
      18d7ed5a
    • O
      Merge pull request #1437 from benru/JENKINS-25286 · 972257bf
      Oleg Nenashev 提交于
      [FIXED JENKINS-25286] Export assignedLabels for agents and jobs in JSON and XML APIs
      972257bf
    • O
      Merge pull request #3111 from oleg-nenashev/feature/JENKINS-27026 · 59b9658a
      Oleg Nenashev 提交于
      [JENKINS-27026] - Update SSHD Module from 2.0 to 2.3 
      59b9658a
  6. 09 12月, 2017 12 次提交