hudson

Hudson won't fetch from Git

十年热恋 提交于 2020-01-01 11:42:28
问题 I have been hitting this one for over a day now, it's driving me mad! I have Git installed on a Win7 PC, and selected the PuttyGen option on install. I have generated ssh keys using PuttyGen; I have added the ssh key to my Git account, and linked the private key in Pageant. I have set up GIT_SSH to point to my putty plink.exe. I've used Putty to connect to codaset & git to get them accepted as known hosts. I can clone from the console, but hudson fails: Fetching upstream changes from git

The system cannot find the specified drive in Jenkins

女生的网名这么多〃 提交于 2020-01-01 05:10:06
问题 I want to copy some files from a network shared drive (mounted at my local machine as drive Z). I have written a Batch file to copy the contents of Z drive into my local drive. This batch file runs successfully on cmd, but i am having issue when i trigger it through Jenkins. The Jenkins gives the following error: "The system cannot find the specified drive" Any help regarding this, will be greatly appreciated. Thanks, Nouman. 回答1: If you don't want to use Jenkins-plugins or schedule-Tasks

How to make a Jenkins job status as aborted

半城伤御伤魂 提交于 2020-01-01 04:04:12
问题 I am running some batch commands as a prebuild step for a build. I want to make the status of the build as aborted based on some conditions. Can anyone tell me what is the errorlevel for 'aborted' in Jenkins? 回答1: You have to install the "Conditional build step plugin" and the "Fail the build" plugins. Then you simply add a conditional step, and if the condition is true, you can call the fail build step with state "aborted". 来源: https://stackoverflow.com/questions/8488541/how-to-make-a

Is it possible to replace the entire Repository Url with a parameterized string in Hudson/Jenkins?

强颜欢笑 提交于 2019-12-31 22:23:58
问题 In Hudson/Jenkins, is it possible to replace the entire string in the Subversion Module Repository URL with a String parameter? I don't want to just replace just the version or anything like that, I want to replace the entire url. So, when I run the build, I'd get a prompt for the URL and I'd put something like "http://scm.work.corp/svn/com.work.package/tags/project-4.0.0.RELEASE" and it would check that out and build it. Being able to substitute the "com.work.package" and "project-4.0.0

Maven release via Hudson

青春壹個敷衍的年華 提交于 2019-12-31 09:58:49
问题 I'm setting up Hudson to use the batch-task plugin to do maven releases to our internal repository. I'm doing it via: mvn --batch-mode release:prepare mvn --batch-mode release:perform I'm interested in other methods people have used and the pros and cons of those methods. Also, any gotchas people have come across. 回答1: I have tended to do the releases always by hand for a few reasons. First if you have to roll back it's easier when you can go back to the original release location and do it.

Hudson/Jenkins Git build all branches

江枫思渺然 提交于 2019-12-31 08:34:10
问题 We have a lot of developers creating feature branches that I would like to build. Nightly we run a code quality tool that needs to run on every branch. I also would not like a static configuration because the number of branches changes every few weeks. 回答1: In Git configuration there is a field 'Branch Specifier (blank for default): ' if you put there ** it will build all branches from all remotes. having that you can use an environment variable ${GIT_BRANCH} e.g. to set a title for the build

Jenkins - Promoting a build to different environments

左心房为你撑大大i 提交于 2019-12-30 08:27:49
问题 I was hoping for some guidance on the best way to promote a build through its environments. We have 3 environments, DEV, STAGING, PROD. The DEV Jenkins build is running in a continuous integration set-up, as code is checked in to subversion, Jenkins will run a new build (clean, compile, test, deploy). The tricky bit is when it comes to STAGING and PROD. The idea was to be able to manually promote a successful DEV build to STAGING. STAGING build would check out the DEV's SVN Revision number,

How can I configure Jenkins to show my logs in the workspace?

限于喜欢 提交于 2019-12-30 08:09:22
问题 I am using Jenkins for CI - and want to be able to expose the logs so we don't have to telnet onto the CI box to see what's going on. Is there a plugin that will do this? Or should I just need to write a script? 回答1: My answer is about reading application server/container log files from different boxes than Jenkins is running on. For example, if you use Jenkins to build your wars and then deploy them to several environments and you want to read the log files from your Jenkins CI server

How can I configure Jenkins to show my logs in the workspace?

你。 提交于 2019-12-30 08:09:01
问题 I am using Jenkins for CI - and want to be able to expose the logs so we don't have to telnet onto the CI box to see what's going on. Is there a plugin that will do this? Or should I just need to write a script? 回答1: My answer is about reading application server/container log files from different boxes than Jenkins is running on. For example, if you use Jenkins to build your wars and then deploy them to several environments and you want to read the log files from your Jenkins CI server

In Jenkins, how do builds know who requested them?

为君一笑 提交于 2019-12-30 07:57:10
问题 I need to pass the username of the requestor of a build down to the script that is actually doing the work. Looking at the console output for a particular build, the first line is always "Started by user foo," so Jenkins is clearly keeping track of who triggered the build. So it should be possible to pass that information down to the job..... The question is, how? 回答1: The username isn't put in an easy-to-fetch environment variable, but you can get it using the xml (or json or python) api -