hudson

How would I start integrating pyflakes with Hudson

守給你的承諾、 提交于 2019-12-05 04:39:56
We use Hudson for continuous integration with the Violations Plugin which parses our output from pylint. However, pylint is a bit too strict, and hard to configure. What we'd rather use is pyflakes which would give us the right level of "You're doing it wrong." You can adapt pyflakes and pep8 output to work with the Violations pylint plugin. pyflakes path/to/src | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > violations.pyflakes.txt pep8 path/to/src | awk -F\: '{printf "%s:%s: [%s]%s\n", $1, $2, substr($4,2,4), substr($4,6)}' > violations.pep8.txt You could use a regex or concatenate the

expect utility is not working when executing from jenkins

走远了吗. 提交于 2019-12-05 04:16:56
we have a unix script which uses expect utility for interactive execution. This script works well when we run from unix server. If we run this script from Jenkins, it is not working. Below is the script var="xxxxx" expect -c " spawn sudo cp /abcd/sjws/config/obj.conf /abcd/sjws/config/obj.conf_jenkins expect { "Password:" { send $var\r;interact } } exit " Below is the output when we run from jenkins spawn sudo cp /abcd/sjws/config/obj.conf /abcd/sjws/config/obj.conf_jenkins Password: Password: Build step 'Execute shell' marked build as failure Finished: FAILURE Since Jenkins doesn't run it

Passing the Maven Debug Flag from Hudson

喜夏-厌秋 提交于 2019-12-05 03:08:17
I'm having an issue with a maven build in hudson. This issue would be fairly easy to resolve if I could see the output of maven with the -X flag passed in. However I can't find a way to do this. If I specify "-X" in the "Goals and options" field of the "Build" section in the job configuration my console output looks exactly the same as if I had not passed the "-X" flag at all. Is the debug logging going somewhere else? Or is there some other way I need to pass the "-X" flag? UPDATE: The reason this isn't working is because the build is failing during the "Parsing POMs" part of the hudson

Writing jenkins plugin: where is the documentation?

五迷三道 提交于 2019-12-05 02:43:27
问题 On my current project we're using Jenkins to monitor our builds. Now they want me to write a Jenkins plugin to add some more monitoring parameters. I've taken a look at how the status monitor plugin works, and I can't figure some things out. I've tried to look for documentation for writing a plugin, but that seems to be sorely lacking. (the site only mentions how to generate the base project, and refers to a tutorial that's not that informative) What I'm trying to do is just add some options

How to Change Hudson Default Interface Language

荒凉一梦 提交于 2019-12-05 02:40:56
I'm running hudson.war through the command line. It launches the interface in my default language, portuguese. How can I change to english? Depends on what you want: If you want to change the language only for yourself, change the browser settings. If you want to change it for everyone, there is a plugin for that. As far as I know, you have to change browser language. Chrome (Mac) > Preferences > Under the Hood > Web Content > Languages and Spell-checker Settings... Internet Explorer > Tools > Internet Options > General > Languages Jenkins shows the Web interface in whatever language your web

Is it possible to allow jenkins to access the files that only root or some specific programs have access to?

喜夏-厌秋 提交于 2019-12-05 01:29:15
问题 What I'm basically trying to do is allow jenkins access my android-sdk-linux folder and all the sub-directories. My boss does not want to change permissions on the folder himself. I am supposed to do it during the build process. I have seen some examples that run some commands in the execute shell during the build process. Is there some commands that can I can run in that execute shell so that jenkins can have read write and execute authority on my android-sdk-linux folder? 回答1: As bcolfer

How to pass a build number within the MultiJob plugin?

橙三吉。 提交于 2019-12-05 01:22:57
The MultiJob plugin is great and I want to use it for my build process, but there is one issue I have to solve before: There are three jobs A, B and C. SVN triggers job A and B (parallel execution) and job C starts when A and B have finished. Job C requires the artifacts from job A and B as an input. -> Job A (with A.zip) Trigger -> Job C (use artifacts A.zip and B.zip) -> Job B (with B.zip) To design the workflow with the MultiJob plugin is easy, but I have no clue how to get the corresponding artifacts from job A and B in job C. Can I pass the build numbers to job C (buildNr(A) != buildNr(B)

Hudson: how do i use a parameterized build to do svn checkout and svn tag?

笑着哭i 提交于 2019-12-05 01:21:22
问题 I'm setting up a parameterized build in hudson v1.362. the parameter i'm creting is used to determine which branch to checkout in subversion. I can set my svn repository url like this: https://my.svn.server/branches/ ${branch} and it does the checkout and the build just fine. now I want to tag the build after it finishes. i'm using the SVN tagging plugin for hudson to do this. so i go to the bottom of the project config screen for the hudson project and turn on "Perform Subversion tagging on

Only trigger a build on commits to the trunk with svn

最后都变了- 提交于 2019-12-05 01:09:41
问题 I have just set up a post-commit script in our subversion repository that triggers a build by requesting a hudson build URL. This works fine as expected, however now I only want to trigger this build if the commit was to the trunk. our post-commit script looks like this: SET REPOS=%1 SET REV=%2 SET DIR=%REPOS%/hooks SET PATH=%PATH%;%DIR% wget http://circus-09:8080/job/UE/build?delay=0sec How to I check that the commit was to the trunk? 回答1: Here's a quick code snippet, that outputs different

BitBucket+Jenkins: Trigger build only when specific branch is changed

折月煮酒 提交于 2019-12-05 01:06:43
问题 The following is a purported solution to the problem, although it does seem like a workaround rather that a definitive solution. Is there a way, through either job config or bitbucket hook config, that I can set my jobs to run a build only when a specific branch is pushed to? Is it possible to trigger Jenkins from one specific branch only? It has been about a year since the posting of that question, I'm hoping there's been some plugin updates to allow for this without the extra work required