jenkins-plugins

Jenkins - resource management

流过昼夜 提交于 2019-12-12 17:30:52
问题 is it possible to manage some resources in Jenkins? By that I mean only certain number of jobs should run in parallel. E.g. my license server can provide only 4 licenses, so each job that uses such license should first check if some counter is greater that zero, next decrement and increment back after license is not needed anymore. There is Exclusion Plugin, but I think it can only create mutex (counter equals 1) not semaphore (counter equals 1 or more). Simple variable in script is not a

Git Parameter Plugin - filtering branches

六眼飞鱼酱① 提交于 2019-12-12 16:09:44
问题 I'm trying to use the GIT Parameter Plug-in to list all release branches that need to go in a build process. If I use the plug-in only specifying the parameter type it works fine simple plug-in configuration When I try to filter the list using the Branch Filter option the list appears empty. I've tried the Branch Filter field with the following values: origin/release/* release* origin/release//* But they all appear to be wrong. As anyone ever configured such a filtering option? If I wound

Unable to test Jenkins plugin

北城以北 提交于 2019-12-12 15:19:09
问题 I am actually trying to develop a Jenkins plugin using maven but I am unable to test it. I created my project with the command mvn -cpu hpi:create . I called the project jenkins-plugin-tutorial . I packaged it with mvn package or mvn install and run the Jenkins server with mvn hpi:run . By default, there is a HelloWorlBuilder for testing purpose that should appear at the Jenkins configuration page (Jenkins Menu -> Manage Jenkins -> Configure System) or under the Build section, but it does not

Selenium WebDriver with Jenkins

允我心安 提交于 2019-12-12 14:12:13
问题 I'm looking into using Selenium WebDriver with Jenkins. We have a Jenkins server running under Windows Server 2008 and would like to run all my test cases and I'm using mstest and also i have installed VS on the windows server... Here is the list of plugin I have installed on my server: Selenium Auto Exec Server(AES) plugin This plugin is for continuous regression test by Selenium Auto Exec Server (AES). 0.5 Jenkins Selenium Builder plugin 1.1 Hudson Seleniumhq plugin This plugin integrates

Loading private repository submodules in Jenkins Project

柔情痞子 提交于 2019-12-12 11:26:43
问题 I'm currently stuck trying to get Jenkins to clone a project and it's submodules use the deploy key config as per Authenticate Jenkins CI for Github private repository Here is my output from Jenkins Console.. it's obvious the plugin is attempting to use the straight project name.. which is not setup to use the key. Started by user '__' Building in workspace /var/lib/jenkins/workspace/JENKINSPROJECTNAME > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git

jenkins workflow “Build whenever a SNAPSHOT dependency is built”

穿精又带淫゛_ 提交于 2019-12-12 11:01:52
问题 I'm currently trying to construct my Maven Job with Jenkins Workflow plugin. In maven job it's possible to set Build Trigger options to "Build whenever a SNAPSHOT dependency is built" . Is there any way to translate this option to Workflow job? I really don't want to transcribe those dependencies manually (there are a lot of them). 回答1: Use Build pipeline plugin and create a view giving your top module as the initial job. It will automatically setup all the jobs according to it's dependencies

Jenkins : Sending success email only once a day (though the job is running @hourly)

旧城冷巷雨未停 提交于 2019-12-12 10:49:28
问题 I have a jenkins job configured to run hourly. I want the success build mail to be sent as email only once a day. Email-Ext gives me the option to send emails for all success , failures etc. But what i wanted is the ability to send success email only once. 回答1: Well, there is no plugin that can do that for you. The default email feature in Jenkins is very simple and it works fine. There is Email-ext plugin though, and this one can do lot more for you. First of all, with Email-ext, you can

Jenkins - Setup wizard blank?

。_饼干妹妹 提交于 2019-12-12 10:45:37
问题 I have tried to setup a docker image with Jenkins installed - I used the wizard, and got the initial password entered, and installed the recommended plugins - After that, I only get an blank page when I connecto to the localhost:8080 page Jenkins inital page If I connect to something like localhost:8080/configure The page works fine, but the inital page doesn't - The tab is called "SetupWizard" in firefox - What can I do? 回答1: It happened to me after the initial installation, in the fisrt

Jenkins Email-ext Pre-send Script

帅比萌擦擦* 提交于 2019-12-12 08:47:56
问题 I want to edit email body in pre-send script in Email-ext Jenkins plugin. What language should I use to write code? Bash script or other? Can you add some piece of code? Thanks. 回答1: The language you must use is Groovy, you can test your piece of code in the script console under Jenkins > Manage > script for anything that doesn't rely on build specific values. Example that cancels sending the email if there have been no changes (tested when using Git): if (build.changeSet.emptySet) cancel

Getting a job's build status as post-build variable

烂漫一生 提交于 2019-12-12 08:27:29
问题 Is there a way to obtain the status of the Jenkins job in a variable during a Post-Build shell script? I want to print out the message Build Status is $BUILD_URL :: $BUILD_STATUS , where $BUILD_STATUS is the status of the current completed build (e.g. ABORTED , SUCCESS , or FAILURE ). 回答1: In my case, I had to include the API TOKEN here is what worked for me: BUILD_STATUS=$(curl --user USER:TOKEN_VALUE --silent $BUILD_URLapi/json | jq -r '.result') which for me was: BUILD_STATUS=$(curl --user