jenkins-plugins

How to increase jenkins build number automatically?

眉间皱痕 提交于 2019-12-12 08:12:25
问题 How to increase jenkins build number automatically or by using shell script?? For now i am doing the same using configure option, and increasing manually. i want to do it automatically. 回答1: What you are asking for (i.e. keeping the build number same between multiple jobs) is simply impossible in Jenkins. This is done by design (as noted by Jenkins creator himself): "[JENKINS] assumes that the build number is unique and monotonic.". You can change it to a higher value, but changing it to same

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

How can I get JIRA issue number from a commit message in Jenkins

若如初见. 提交于 2019-12-12 07:28:36
问题 I am using Gitlab for our source code management, jenkins for CI jobs and JIRA for issue tracking. Once I commit in gitlab with an issue number for example "Project-123 edited demo file.", I have a jenkins hook that triggers a build. I have the JENKINS's Jira Plugin and use Progress JIRA issues by workflow action. I have a two part question: my JQL for searching for the issue is: project=PROJ and status="Build Started" and updated >= "-15m" My workflow action is Jenkins Build is Successful.

How to change the time zone in Jenkins?

巧了我就是萌 提交于 2019-12-12 07:10:05
问题 I wish to change the time zone of the Jenkins. I have changed the time zone of the Jenkins installed server, but the Jenkins UI shows the different time. I need to set the PST time for Jenkins UI. How can I do it? 回答1: See https://wiki.jenkins-ci.org/display/JENKINS/Change+time+zone. Jenkins should respect the timezone set for java. But you can force Jenkins to use a specific timezone by adding the following to start command of Jenkins: java -Dorg.apache.commons.jelly.tags.fmt.timeZone

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

Jenkins Google Login Plugin Redirect URIs error

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 06:15:30
问题 I have configured the Jenkins and needed to enable Google Login Plugin. As per plugin documentation I'm trying to create a Google Client-id. In the documentation it says enter " Redirect URIs " as follows. But when I enter this in the App console to generate the client id Google says it "Invalid URL" http://XX.XX.228.XX:8080/securityRealm/finishLogin When I directly loaded this page in the browser this error is shown up with 500 status code Note: My url is a public url 回答1: The authorized

Jenkins PackageCloud upload - Missing artifact - fingerprint - No such file or directory

感情迁移 提交于 2019-12-12 03:57:28
问题 Using: Jenkins: 2.7.2 PackageCloud Plugin: 1.11 Created a new trial account in packagecloud.io site, created a new private repository (URL just fyr: https://packagecloud.io/arunsangal/deb_stuff). As per the docs, I created a new Jenkins credential under packagecloud.io new domain. Then, in Jenkins packagecloud.io domain credential, I created a new user ( arunsangal ) and provided the password value (i.e. the generated API token which I got packagecloud.io site) and configured it as per the

Jenkins Git Plugin

天涯浪子 提交于 2019-12-12 03:49:12
问题 I am getting the below error when attempting a Jenkins build of a project from a GitHub repository for a poc. Jenkins is a local install and I am using the https address for git with thge username and password I use to login to GitHub. Can anyone offer me some pointers here as I am new to both Jenkins and GitHub Building in workspace C:\Program Files (x86)\Jenkins\workspace\AdventureWorks2014 - 1. Build Cloning the remote Git repository Cloning repository https://github.com/h020905a

Unable to run automation on firefox Jenkins

倾然丶 夕夏残阳落幕 提交于 2019-12-12 03:45:48
问题 I'm having trouble running the automation project on a recently installed Jenkins on a Ubuntu server. I'm having the following error: Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) /var/lib/gems/2.3.0/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/firefox/launcher.rb:90:in `connect_until_stable' /var/lib/gems/2.3.0/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/firefox/launcher.rb:55:in `block in launch' /var