Re: Recommending for cleaning up old builds when multibranch pipeline is in use?

2017-11-28 Thread Kevin Brotcke
I can confirm deleting old builds PER branch is working for declarative syntax by using the option: options { buildDiscarder(logRotator(numToKeepStr:'10')) } But this doesn't really solve my problem. I want to keep max N builds across ALL branches in a multibranch pipeline to maintain a more pre

Re: Recommending for cleaning up old builds when multibranch pipeline is in use?

2017-11-28 Thread Mark Waite
On Tuesday, November 28, 2017 at 4:50:48 PM UTC-7, Kevin Brotcke wrote: > > I also couldn't get the buildDiscarder working, nothing seems to be > happening. In our case we create a lot of long lasting branches which > filled up our Jenins server disk space pretty quickly. I wrote a quick > Gro

Re: Recommending for cleaning up old builds when multibranch pipeline is in use?

2017-11-28 Thread Kevin Brotcke
I also couldn't get the buildDiscarder working, nothing seems to be happening. In our case we create a lot of long lasting branches which filled up our Jenins server disk space pretty quickly. I wrote a quick Groovy script to delete old builds across all branches but I'd prefer a more integrate

Re: How can I inject environment variables into my groovy class?

2017-11-28 Thread Michael Pailloncy
Pipeline environment variables are not stored at the OS level. That's why you are not able to get them using *System.getenv() *(which only list OS level environment variables). But you should be able to retrieve them like any other classical environment variables : with the "${MyVar}" syntax inside

gitblamer skips file annotation with relative path

2017-11-28 Thread Mathieu Zhang
I have the following workspace structure: - ${WORKSPACE}/git-checkout > - ${WORKSPACE}/artifacts The codes are build with (from WORKSPACE) make -C git-checkout ARTIFACTS_DIR=${WORKSPACE}/artifacts which would write output files to ${WORKSPACE}/artifacts, including pylint output, which contai

Re: How can I inject environment variables into my groovy class?

2017-11-28 Thread Victor Martinez
Just wondering whether using the previous thread: https://groups.google.com/forum/#!topic/jenkinsci-users/XbI9WjlLmFY/discussion might help to keep a history of the previous suggestions though -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: Unable to connect to TFS server 2017 from Jenkins

2017-11-28 Thread CC
Thank you so much for your reply. Could you please elaborate more on how did you add cert to "All Unassigned" IP-addresses? On Tuesday, November 28, 2017 at 8:02:49 AM UTC-6, Andreas Lunderhage wrote: > > I had the exact same problem. > > My problem was that there was no default certificate set

How can I inject environment variables into my groovy class?

2017-11-28 Thread red 888
My pipeline is using the environment directive to set an environment var and then calls a groovy class: def call(int blah) { pipeline { agent any environment { MyVar = credentials('djsjflsjfljsf') } stages { stage('Stage ONE') {

Re: Not understanding how input parameters are supported by Blue Ocean for multi branch

2017-11-28 Thread Cliff Meyers
Hello, Could you post a minimal Jenkinsfile that reproduces the issue, and also clarify which screen you're initiating the run from? It could possibly be a bug that needs fixing. It would greatly accelerate our reproducing the issue if you can provide what I requested above. Thanks, Cliff On Tue

Not understanding how input parameters are supported by Blue Ocean for multi branch

2017-11-28 Thread itchymuzzle
I have a Jenkinsfile, which includes this: parameters { string(name: 'Stack', defaultValue: 'DEV', description: 'For which environment is this?') string(name: 'Version', defaultValue: '3.2.0-beta.0', description: 'What is the release version?') } And works great, running it in the "regu

Re: Starting Jenkins slave as Windows service

2017-11-28 Thread itchymuzzle
Go to Jenkins server, select the node you have defined for this Windows instance. It will give you the command you need to run, on the command line. Test that that works on the command line, then figure our how to get procron to do that for you. The command will look something like this (

Re: Starting Jenkins slave as Windows service

2017-11-28 Thread eid badr
I used procrun to generate the service This is my configuration file: set SERVICE_NAME=jenkinsTest99 set PR_INSTALL=g:\jenkins\test\prunsrv.exe REM Service log configuration set PR_LOGPREFIX=%SERVICE_NAME% set PR_LOGPATH=c:\logs set PR_STDOUTPUT=c:\logs\stdout.txt set PR_STDERROR=c:\logs\stderr.

Re: Starting Jenkins slave as Windows service

2017-11-28 Thread eid badr
I used procrun to generate the service This is my configuration file: set SERVICE_NAME=jenkinsTest99 set PR_INSTALL=g:\jenkins\test\prunsrv.exe REM Service log configuration set PR_LOGPREFIX=%SERVICE_NAME% set PR_LOGPATH=c:\logs set PR_STDOUTPUT=c:\logs\stdout.txt set PR_STDERROR=c:\logs\stderr.

Re: Starting Jenkins slave as Windows service

2017-11-28 Thread itchymuzzle
Not clear what command you used. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the we

Coexistence of two equal plugins

2017-11-28 Thread Virginia Mesa
Hi, I modified a Jenkins plugin in which there was a drop-down and I wanted a textbox. Once modified, my idea was to upload this version of plugin and at the same time keep the previous one unchanged, so as not to disrupt the execution of other jobs that use it. I have changed the idartifactory,

Help Please: How to change not reset admin password

2017-11-28 Thread Mai Waly
Hi All, Please help, our jenkins instance is now integrated to active directory and my ldap account is admin. We have forgot local admin password and soon we need to change active directory account password. How to change local account "admin" password via our ldap account, I can not find whe

Re: How can I create Pipeline with TestNG? I am creating scripts using Selenium(Java) and TestNG.

2017-11-28 Thread itchymuzzle
What do you already have setup and working? Jenkins server, and a node? Jenkinsfile in place? ... -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-

Starting Jenkins slave as Windows service

2017-11-28 Thread eid badr
I'm trying to start Jenkins slave as a windows service, but I get the following error. which second argument is required here? 2017-11-28 16:02:01 Commons Daemon procrun stderr initialized two arguments required, but got [url=http://111.11.11.111/jenkins/computer/222.22.22.2/slave-agent.jnlp] ja

Rest API access to flowGraphTable

2017-11-28 Thread Mike Nicholson
Hello, I'm looking for a way to access the data provided by the flowGraphTable (aka "Pipeline Steps") for a job via a rest API. My ultimate goal is a is a timeline visualization of the build flow illustrating the duration of each step as well as which executor they ran on - essentially a more

Re: Unable to connect to TFS server 2017 from Jenkins

2017-11-28 Thread Andreas Lunderhage
I had the exact same problem. My problem was that there was no default certificate set on the TFS host in case no SNI name was sent in the TLS handshake. Adding the same cert to "All Unassigned" IP-addresses for port 443 as for the hostname of the cert for the port binding solved the problem.

Triggering Jenkins Multibranch Pipeline by raising a Pull Request in GitHub

2017-11-28 Thread Sunil Boga
I am using Jenkins Multibranch pipeline. I've configured the APIs (github-webhook and ghprbhook) on GitHub. Currently, If I click on "Scan Repository Now/Scan Repository Log" in Jenkins, the Jenkins will go through the GitHub and creates a new PR job in Jenkins if there are any PR on GitHub. So I

Re: docker jenkinsci/ssh-slave volumes

2017-11-28 Thread nicolas de loof
This is to make it clear where (potentially) persistent data should live, the rest of the container being fully transient. Le 28 nov. 2017 1:41 PM, a écrit : > Hi, > I would like to know the utility of the "volume" command in > jenkinsci/ssh-slave docker file : > https://hub.docker.com/r/jenkins

docker jenkinsci/ssh-slave volumes

2017-11-28 Thread pi . quiroule
Hi, I would like to know the utility of the "volume" command in jenkinsci/ssh-slave docker file : https://hub.docker.com/r/jenkinsci/ssh-slave/~/dockerfile/ Is it for performance reasons like explained in : https://docs.docker.com/engine/admin/volumes/ or is it necessary for some other reasons ?

Re: BitBucket Branch Source Plugin not triggering builds from Post Webhooks PR event

2017-11-28 Thread Joseph P
Released a fix for PR events not working: https://marketplace.atlassian.com/plugins/nl.topicus.bitbucket.bitbucket-webhooks/versions#b100600100 Next time please post the issue on GitHub, https://github.com/Eernie/bitbucket-webhooks-plugin/issues I rarely read the Jenkins users threads, sorry.

Re: trouble with Bitbucket Branch Source Plugin

2017-11-28 Thread Joseph P
Released a fix for PR events not working: https://marketplace.atlassian.com/plugins/nl.topicus.bitbucket.bitbucket-webhooks/versions#b100600100 Den tirsdag den 21. november 2017 kl. 21.50.31 UTC+1 skrev i.k...@betterfly-tourism.com: > > Hello, > > I am having trouble setting up trigger of buil