hudson

What password encryption Hudson is using?

喜夏-厌秋 提交于 2019-12-21 02:36:09
问题 This is what I see in hudson/users/me/config.xml : [...] <hudson.security.HudsonPrivateSecurityRealm_-Details> <passwordHash>mEDUyJ:0c9e6f2556b9b3a0b9e9046c21490422b4a54877f057b527b2c0bd4dc83342d5</passwordHash> </hudson.security.HudsonPrivateSecurityRealm_-Details> [...] What is the algorithm (if SHA1, than what is the mEDUyJ prefix)? How can I get this hash in PHP, for example? 回答1: The source code responsible for this is found in the hudson.security.HudsonPrivateSecurityRealm class (more

Access Stage results in Workflow/ Pipeline plugin

徘徊边缘 提交于 2019-12-21 01:56:41
问题 I have a pipeline with different stages. I want the current job to check how many stages have passed in the previous build and log it in the console? Consider this is my current pipeline node(){ stage "1" do something stage "2" do something else } I want a groovy script to give my something like this println currentBuild.previousBuild.getStage("1").result The purpose of my code is track successes & failures in different stages across my builds. Are there any alternatives to this approach? 回答1

Jenkins Dynamic parameters based on previously selected parameter value

∥☆過路亽.° 提交于 2019-12-20 17:39:19
问题 Here I am basically looking for a dependency parameter. Let's say I have two dropdowns in the build parameter section. Based on the value selected from the first dropdown the possible default I want the values of the second dropdown to vary. Is there any plugin or approach to handle this requirement effectively? 回答1: This is exactly what you are looking for: https://github.com/biouno/uno-choice-plugin/wiki/Uno-Choice-Cascade-Dynamic-Choice-Parameter It seems to be a hidden gem, haven't found

How to list the slowest JUnit tests in a multi-module Maven build

╄→尐↘猪︶ㄣ 提交于 2019-12-20 14:21:05
问题 How can I list the slowest JUnit tests in a multi-module Maven build? This should be accross all modules. A Hudson/Jenkins solution could also do. 回答1: Disclaimer: I truly apologize for my bash solution, although it works and fits in one line :-). If you are impatient, go to the bottom. First we need to find all TEST-*.xml files produced by maven-surefire-plugin . Run this after mvn test in the root directory of your project to discover test results in all submodules: $ find . -iname "TEST-*

How to list the slowest JUnit tests in a multi-module Maven build

与世无争的帅哥 提交于 2019-12-20 14:20:09
问题 How can I list the slowest JUnit tests in a multi-module Maven build? This should be accross all modules. A Hudson/Jenkins solution could also do. 回答1: Disclaimer: I truly apologize for my bash solution, although it works and fits in one line :-). If you are impatient, go to the bottom. First we need to find all TEST-*.xml files produced by maven-surefire-plugin . Run this after mvn test in the root directory of your project to discover test results in all submodules: $ find . -iname "TEST-*

Jenkins Subversion Error - E200015: No credential to try. Authentication failed

孤者浪人 提交于 2019-12-20 09:48:37
问题 I've updated the Subversion plugin of jenkins to version 2.2 Now i get following error for repos which build the first time after the upgrade and for repos where something within an external changed. It works for all other builds as expected. I tried to add additional credentials but this did not help. Now i hope someone has an idea what else can be tried to fix this annyoing issue. The error: hudson.util.IOException2: revision check failed on http://XXX/svn/XXX/Website/Config/trunk at hudson

Which version of Xcode does xcodebuild use?

纵然是瞬间 提交于 2019-12-20 08:28:52
问题 I have installed both Xcode 3.2 and Xcode 4.0.2 on the same machine, which uses Hudson for automated CI (continuous integration) builds. When I say that both were installed, what I mean by that is that I can use both Xcode 3 and Xcode 4 simultaneously or interchangeably. They both exist on the machine, as I did a custom install for Xcode 4 without overwriting Xcode 3 (supposedly). Do command line calls to 'xcodebuild' invoke Xcode 3 or Xcode 4? Does that question even make sense? Someone who

GitHub, Gerrit, Hudson(Jenkins) workflow

Deadly 提交于 2019-12-20 08:15:41
问题 I'm just getting started using GitHub, Gerrit, and Hudson(Jenkins) together. And I need some thoughts on workflow. We'd like to use GitHub as our main remote repo. We'd like to use Gerrit primarily for code reviews, but also for build triggers in Hudson. At the moment, though, I'm having some trouble thinking through the workflow for this and would like to hear what others have done themselves. Thoughts? 回答1: I haven't directly used Gerrit, but I like the idea of intermediate and specialized

Keychain won't unlock from Jenkins script unless user logged in

梦想与她 提交于 2019-12-20 08:10:18
问题 I'm running a Jenkins CI server on an OS X machine. The server is running as a standard user 'john', and is started by running launchctl. One of the things this server does is build XCode projects using keys and certificates stored in a keychain 'xcode.keychain': Jenkins (which is running under the user 'john' according to activity monitor) calls these commands from a script when the user presses a button on the web interface. security default-keychain -s /Users/john/Library/Keychains/xcode

Jenkins - Passing array/list to Parameterized Remote Build

耗尽温柔 提交于 2019-12-20 06:49:27
问题 I am using Jenkins to remotely run an Ansible playbook via the Publish Over SSH command. This command: curl -k -v -X POST https://jenkins.myhost.com/job/Ansible_Deploy/build?token=<appToken> --user <myUser>:<userToken> --data-urlencode json='{"parameter":[{"name":"thisIsAList","value":["one","two","three"]}]}' should trigger a post-build action to remotely execute the following command over SSH: ansible-playbook /home/<myUser>/test/practice.yml --extra-vars "thisIsAList=$thisIsAList"