hudson-plugins

Jenkins Parallel Trigger and Wait

核能气质少年 提交于 2019-12-12 08:04:07
问题 I have 4 jobs which needs to be executed in the following sequence JOB A |------> JOB B |------> JOB C |------> JOB D In the above A should trigger B & C parallely and C inturn triggers D. A should hold the job as running till all 3 of them completed. I tried the following plugins and couldn't achieve what I am looking for Join Plugin Multijob Plugin Multi-Configuration Project Paramterized Trigger Plugin Is there any plugin which I haven't tried would help me in resolving this. Or is this

stderr: fatal: Couldn't find remote ref $GERRIT_REFSPEC

孤者浪人 提交于 2019-12-12 07:49:43
问题 Before anyone guns me down..I have looked at all the messages that has this error but they seem to manifest from a different problem,I couldn't get any substantial information. Following are the errors I'm running into in the git polling log... I don't have a clue regarding error #1,please provide inputs For this,I read on other questions that $GERRIT_REFSPEC gets filled in dynamically when there is a gerrit trigger but i don't understand why I keep seeing this in the git poll log. How can I

Pre send script in groovy for jenkins

不羁岁月 提交于 2019-12-12 06:26:09
问题 i have two dependent jobs. i need help for groovy script in jenkins, for writing pre send script for email-ext plugin. i want to check whether buid reason is upstream cause, then set cancel variable=true But i don't know how to write if condition in groovy for jenkins..For seperate jobs, will there be any seperate classes in jenkins(so i can create instance and call upstream cause) is there any way to check build cause of downstream job is due to upstream.. Please help me on this code snippet

hudson svn publisher plugin not working

允我心安 提交于 2019-12-11 10:04:39
问题 I'm trying to use the SVN Publisher plugin to commit some artifacts of my build but I'm getting a non-sensical error: workspace: /Users/builder/hudson/workspace/myproject/ Attempting to import to SVN: https://mysvnrepo.com/svn/myproject/_SNAPSHOT_ SVN Publisher: target: /Users/builder/hudson/workspace/myproject/myproject/_build SVN Publisher: Error: target Directory not accessable: /Users/builder/hudson/workspace/myproject/myproject/_build This path is readable by the user that the hudson

Hudson cannot find powershell after update to powershell 3

为君一笑 提交于 2019-12-10 17:55:26
问题 One of my jobs had need for the ConvertTo-Json commandlet available in powershell 3.0 So I installed WMF 3.0 on our Windows Server 2008 R2 (SP1) box. After a restart all my powershell using jobs result in the error: [workspace] $ powershell.exe "& 'C:\Users\HUDSON~1\AppData\Local\Temp\hudson1263303013566726397.ps1'" The system cannot find the file specified FATAL: command execution failed java.io.IOException: Cannot run program "powershell.exe" (in directory "C:\hudson\jobs\MyProject

Are setenv hudson plugin variables accessible in status email?

为君一笑 提交于 2019-12-09 14:12:40
问题 I installed the SetEnv plugin and it works fine for getting the variables during a task. unfortunately when i try to use the env variable in the resulting status email I have no luck at all. Is this supposed to work? I've tried both $VARNAME and ${VARNAME} - neither of which get replaced correctly in the email. 回答1: The simplest way to use environment variables (or any variables) in your email notifications is by using the Email-ext plugin. Check their "Content token reference" for specifics

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

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

Marking upstream Jenkins/Hudson as failed if downstream job fails

假装没事ソ 提交于 2019-12-03 22:39:12
I am using Parameterized Trigger Plugin to trigger a downstream build. How do I specify that my upstream job should fail if the downstream fails? The upstream job is actually is dummy job with parameters being passed to the downstream. Andrew Make sure you are using the correct step to execute your downstream jobs; I discovered that since I was executing mine as a "post build step", I didn't have the "Block until the triggered projects finish their builds" option. Changing that to "build task" as opposed to a "post build task", allowed me to find the options you are looking for within the

Are setenv hudson plugin variables accessible in status email?

雨燕双飞 提交于 2019-12-03 21:44:05
I installed the SetEnv plugin and it works fine for getting the variables during a task. unfortunately when i try to use the env variable in the resulting status email I have no luck at all. Is this supposed to work? I've tried both $VARNAME and ${VARNAME} - neither of which get replaced correctly in the email. The simplest way to use environment variables (or any variables) in your email notifications is by using the Email-ext plugin . Check their "Content token reference" for specifics but in short you get much more sophisticated substitution. Heres a few I use regularly: ${ENV, var} -