hudson

Configuring Hudson/Jenkins for staging and production

巧了我就是萌 提交于 2019-12-06 08:28:24
How do I configure Hudson/Jenkins to production and staging deploy with the same configuration? I have a build and deploy workflow configured in Jenkins to do production pushes. Now I need to use the same configuration to do a staging push, expect that couple of folder & DB names will change to reflect stage. I.e. Say from /var/prod/html to /var/stage/html and db from companyname_table to companyname_table_stage . I don’t want to do a copy of the configuration since I may have to change the configuration in one place then I will have to make duplicate changes to every copy. Ideally I want to

Jenkins CI - SSL handshake_failure

一个人想着一个人 提交于 2019-12-06 07:02:29
I am trying to configure Jenkins CI to perform continuous integration for our project and am unable to get it to connect to our SVN repository over https. Any time I try to configure the repository URL and it attempts to connect I get the following exceptions: org.tmatesoft.svn.core.SVNException: svn: OPTIONS /svn/repo/path failed at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:291) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:276) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request

Is it possible to see the source code of the violating files in Hudson with Violations and Pylint?

本秂侑毒 提交于 2019-12-06 06:43:40
问题 I'm using Hudson CI with a Python project. I've installed the Violations plugin and configured it to run the code against pylint. This works, but I only see a list of violations without linking to the source code. Is it possible to setup Violations and pylint to load and highlight the violating source files (something similar to the Cobertura Coverage Reports)? Better yet, can Violations integrate with pep8.py? 回答1: Well, after some more debugging, I realized that the pylint output file

Hudson/Jenkins — how to access a private git repository on BitBucket.com

六月ゝ 毕业季﹏ 提交于 2019-12-06 06:01:06
问题 This question is long and multifaceted, so I'll start with a brief overview, and then show in detail everything I've tried and my questions as to why they don't work and what I'm doing wrong. Overview I'm trying to setup a Build Job on Hudson for source code on a private repository on BitBucket. There are a lot of similar questions on Stack Overflow, but for various reasons none of them address my needs. I would like to access it using https instead of ssh, but there seems no way forward

Last Successful Artifacts List

五迷三道 提交于 2019-12-06 05:29:11
I would like to create an archive of the *.jar files in hudson. Currently it does not list the *.jar files created by the build. Is there an addon for this, or is there setup required, if so where? Here is what I would like it to look like. (source: nabble.com ) Here is what i currently have. (source: nabble.com ) edit: also do i need to play with include sets in order to get this working? Edit the project properties. Click on the option "Archive the artifacts", and enter a pattern matching the artifacts you want to keep. For example, *.jar . The presentation is changed based on the number of

Hudson: What is a good way to store a variable between the two job runs?

拈花ヽ惹草 提交于 2019-12-06 04:34:05
问题 I have a job which needs to know the ceratin value calculated by the previous job run. Is there a way to store it in the Hudson/Jenkins environment? E.g., I can write something like next in a shell script action: XXX=`cat /hardcoded/path/xxx` #job itself echo NEW_XXX > /hardcoded/path/xxx But is there a more reliable approach? 回答1: A few options: Store the data in the workspace. If the data isn't critical (i.e. it's ok to nuke it when the workspace is nuked) that should be fine. I only use

Run daemon as another user on mac os x

半世苍凉 提交于 2019-12-06 04:05:11
I'm trying right now to create separate user for jenkins on Mac Os and run it with this user. I've created a new user: # Create the group sudo dscl . create /Groups/jenkins sudo dscl . create /Groups/jenkins PrimaryGroupID 300 # Create the user sudo dscl . create /Users/jenkins sudo dscl . create /Users/jenkins PrimaryGroupID 300 sudo dscl . create /Users/jenkins UniqueID 300 sudo dscl . create /Users/jenkins UserShell /bin/bash # Set the users pasword sudo dscl . passwd /Users/jenkins 123qweASD # Add the user to the group sudo dscl . append /Groups/jenkins GroupMembership jenkins And the I

Checkstyle and Findbugs for changed files only on Jenkins (and/or Hudson)

元气小坏坏 提交于 2019-12-06 03:26:23
问题 We work with a lot of legacy code and we think about introducing some metrics for new code. Is it possible to let Findbugs and Checkstyle run on changed files only instead of a complete project? It would be nice to assure that only file with a minimum of quality is checked in, but the code base itself is not (yet) touched and evaluated not to confuse people by thousands of issues. 回答1: In theory, it would be possible. You would use a shell script to parse the SVN (or whatever SCM) change logs

Having Latest Tests Results info in the notified email with Hudson

一笑奈何 提交于 2019-12-06 02:51:22
问题 I have a project with a lot of tests failing, so it would be great for me to receive by email the number of failed tests compare from the latest build. What i need is just the info that appears in the project's page by the test results link: Latest Test Result (10 failures / -2) Is this possible? I've already tried the email-ext plugin, but it is not telling me that info (I can have the list of failing tests with output etc., but I really just need that info above). Any ideas? 回答1: In the end

Remove artifacts from Hudson, but retain logs in order to link to builds

旧时模样 提交于 2019-12-06 02:01:27
We have the following requirements for our Hudson setup: We would like to directly link to all builds that have been executed The effective number of artifacts should be limited It is possible to limit the number of maximum builds in Hudson per job (see this question ). This option effectively removes old artifacts. The problem is that this also removes all other information related to the build. Is there a way to retain linking directly to completed builds via http://${hudson}/job/${jobname}/${buildnumber} , even if artifacts were removed? Sometimes it may be good to commit fixes and link to