Multiple distinct junit/testng reports with Jenkins pipeline

2016-12-28 Thread Dan Tran
Hi I have a Jenkins pipeline with multiple test stages, instead of aggregate the report in one step, I would like to do a report per stage with distinct name. Possible??? This way, I should see a list of reports show up at left navigation Very much appreciated any help -Dan -- You

Re: Jenkinsfile Sysntax

2016-12-28 Thread Atul Sharma
Thanks mark , On Thu, 29 Dec 2016 at 03:09, Mark Waite wrote: > If you're working in a repository alone, you can take the simple approach, > checkin your change and watch it run in Jenkins. For example, if you're > using github and you're working on a fork of

Re: Jenkins pipeline build failing even though all steps/stages pass

2016-12-28 Thread Raj Sahae
Hi David, Here is a gist of the grepped failure output. I had to remove two segments of the output but I looked over them, very carefully, for any sort of failure indication and there was none. https://gist.github.com/rajsahae/743aed54f145bd664f65051082c622a5 The rest of the output, you can

Description of memory sharing between master and slaves in pipelines?

2016-12-28 Thread Doug DesCombaz
I'm trying to find some documentation of how Jenkins shares information between master and slaves. I'm not necessarily interested in the channels, or mechanisms, but the guarantees (wishes) on how the memory would be distributed (I am also interested in the channels, and mechanisms, but that's

Re: Jenkins pipeline build failing even though all steps/stages pass

2016-12-28 Thread Raj Sahae
Hi David, I'm looking through the output and there is no way for me to fully sanitize this without deleting large swaths of output at which point I can't guarantee that you would find the output complete enough. Are there any questions or analysis of the output that I could communicate to you

Re: Jenkins pipeline build failing even though all steps/stages pass

2016-12-28 Thread Raj Sahae
Hi David, Thanks for your reply. I can certainly attempt to post the output but I will have to go through and sanitize it a bit. That might take some time. Will try to post back here ASAP with something for you to look at. On Wednesday, December 28, 2016 at 3:52:52 PM UTC-8, David Karr wrote:

Re: workflow-multibranch-plugin: [JENKINS-38688] Multibranch: allow build to be triggered on duplicated branch project

2016-12-28 Thread Stephen Connolly
Multibranch was started as an experiment... then it proved successful as a model and was adopted, but as I had never had the time to document the rationale and approach, some mistakes were made in its application to pipeline... Additionally the initial implementation has MVP event support

Re: Condition in pipeline

2016-12-28 Thread David Karr
It might help to realize that a pipeline script is just Groovy code. If you need to make sure that something is only executed when the current time is between 1pm and 2pm, just get the current time, convert it to hour of day, and have an "if" block comparing that value against your constraint. You

Re: Jenkins pipeline build failing even though all steps/stages pass

2016-12-28 Thread David Karr
I'd say we would need to see all of the console output, even though you say it reports failure. On Tue, Dec 27, 2016 at 11:59 PM, Raj Sahae wrote: > Hi all, > > I have a pipeline that I consider to be pretty basic. Nothing complicated in > terms of the logic. Here is a gist >

Re: Jenkinsfile Sysntax

2016-12-28 Thread Mark Waite
If you're working in a repository alone, you can take the simple approach, checkin your change and watch it run in Jenkins. For example, if you're using github and you're working on a fork of the repository, then you're "working in a repository alone". If you're working on a repository which is

Re: Need pipeline script help

2016-12-28 Thread Venkat S
Hi All, Simple question: How to change the jenkins home directory location? By default it points to /var/lib/jenkins whereas I want it to point to /mnt/home/jenkins. I have changed my $JENKINS_HOME to /mnt/home/jenkins but it doesn't help me. I am getting jenkins Ui problem. see below error. If

Re: workflow-multibranch-plugin: [JENKINS-38688] Multibranch: allow build to be triggered on duplicated branch project

2016-12-28 Thread Nick Stolwijk
Ah, I didn't know that support was _that_ experimental. :-) I will be happy to test it out once it is available. I will continue to build up my pipeline just to make it work without the trigger functionality. Thanks for the help! Nick Stolwijk ~~~ Try to leave this world a little better than

Re: Jenkinsfile Sysntax

2016-12-28 Thread Atul Sharma
Thanks mark , Can you please also help me how to do It once some steps , so that I can check besically I want to check syntax of my Jenkins file which is wrote in groovy and we are using git where our Jenkins file exist , so before build Jenkins job I want to check mention code in same Jenkins

Re: workflow-multibranch-plugin: [JENKINS-38688] Multibranch: allow build to be triggered on duplicated branch project

2016-12-28 Thread Stephen Connolly
You should use `checkout scm` to check out the repo watched by the multi branch project. Likely there are bugs in the git plugin's triggering (or in the pipeline's checkout step) that hopefully will be shaken out in the new year once I push the 2.0.0 release lines out of experimental and we start

Re: config.xml is overwritten on first start of docker container

2016-12-28 Thread Stefan Rademacher
Thanks for your reply. I tried to narrow things down: A simple Dockerfile, that only copies "my" config.xml to /usr/share/jenkins/ref/ works fine. The config.xml is kept unmodified as expected. (The only thing, that is different between "my" config.xml and a default config.xml is the line

Re: Jenkinsfile Sysntax

2016-12-28 Thread Mark Waite
The most reliable check is to run it in a Jenkins job. If you want to iterate through a series of experimental changes without committing them to the source control system, you can define the Jenkinsfile in the Jenkins job, then edit it from the Jenkins job configuration web page. If you prefer

Re: workflow-multibranch-plugin: [JENKINS-38688] Multibranch: allow build to be triggered on duplicated branch project

2016-12-28 Thread Nick Stolwijk
I am using the first case, but it doesn't seem to trigger on the second repository. Jenkinsfile in both repositories: node{ stage('Checkout first project') { // Get some code from a GitHub repository checkout([$class: 'GitSCM', branches: [[name: '*/develop']],

Re: workflow-multibranch-plugin: [JENKINS-38688] Multibranch: allow build to be triggered on duplicated branch project

2016-12-28 Thread Stephen Connolly
When you have multiple sources, those sources are *an ordered list* This means that the first source with a branch name owns the name. As such the described issue is WONTFIX But I suspect a different issue is what is actually being looked for. Is the case where you have multiple repositories

Jenkinsfile Sysntax

2016-12-28 Thread Atul Sharma
Please tell me how can i check the jenkinsfile systax , I am new in programming please tell me best way to test the jenkins file , -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

workflow-multibranch-plugin: [JENKINS-38688] Multibranch: allow build to be triggered on duplicated branch project

2016-12-28 Thread Nick Stolwijk
Hi all, I'm trying to get my bearing around the pipeline plugin, because I want a series of jobs which listen to multiple repositories. Now I am encountering the issue as described in JENKINS-38688[1] and this seems a showstopper for my usecase. Is there anyone with any knowledge about this

Re: Automating Jenkins Installation Steps

2016-12-28 Thread 'Karthik Veeragoni' via Jenkins Users
Sorry for the typos: After installation of jenkins, when for the first time we access the Jenkins web UI, we will go through following steps: 1. Pasting Administrator Key from a secret file on to the Web UI 2. Plugins Installation {Default or Custom} 3. User Account creation My intention is to

Re: Automating Jenkins Installation Steps

2016-12-28 Thread 'Karthik Veeragoni' via Jenkins Users
After installation of jenkins, when for the first time we access the Jenkins web UI, we will go through following steps: 1. Pasting Administrator Key from a secret file on to the Web UI 2. Plugins Installation {Default or Custom} 3. User Account creation My intention is to use automate those

"WARNING: Skipped parameter" appears a lot of times in the log

2016-12-28 Thread Asaf Mesika
Hi, I have the following line appears many times in the log of Jenkins: Dec 28, 2016 10:51:59 AM hudson.model.ParametersAction filter WARNING: Skipped parameter `BRANCH_NAME` as it is undefined on `build-gaia-full`. Set `-Dhudson.model.ParametersAction.keepU ndefinedParameters`=true to allow

Terraform remote state using Jenkins

2016-12-28 Thread prakashkpagare
Hello, Can anyone please tell me if Jenkins supports terraform remote state? If yes, how to configure it ? I want to keep my state files in S3 bucket and use that for plan, destroy etc. Thanks, -- You received this message because you are subscribed to the Google Groups "Jenkins Users"

Re: Encryping credentials in a format that Jenkins can read

2016-12-28 Thread Ali Ok
Did no encryption of password and I can verify that it works. Maybe later we can revisit this subject. Need to discuss with my colleagues if storing the password w/o encryption is a problem on a Kubernetes pod. On Fri, Dec 23, 2016 at 1:18 PM, wrote: > This is what

Re: For multi-branch pipeline, deleting branch from github project will not result in deleting of same branch project from jenkins.

2016-12-28 Thread Stephen Connolly
If using the 2.0.0+ versions (currently only in the experimental update centre) the events will mark the branch as a dead branch within 5s of the branch being deleted. The branch will not actually be deleted until the branch indexing has run and only if the Orphaned Item strategy marks the branch

Condition in pipeline

2016-12-28 Thread Stefan Lorenz
Hi, i have a conditional step in a build configuration that is triggered by time, e.g. if time is between 1:00 and 2:00. How do I map that in pipeline script? Thanks and regards Stefan -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Re: For multi-branch pipeline, deleting branch from github project will not result in deleting of same branch project from jenkins.

2016-12-28 Thread Vijay Surwase
Thank you. On Tue, Dec 20, 2016 at 11:17 PM, Trever wrote: > I believe it may depend on your build history retention policy. If your > policy is to keep builds for 10 days, the build will remain for 10 days. > I've found that changing the retention policy will allow it

Re: looking for plugin to display "All Failed Test" of Age 1 in dashboard view in jenkins

2016-12-28 Thread Lakshmi narayana
any luck ? I'm looking for similar stuff could you help here Prepare dash board with all 10 required jobs - *Pass Rate (PR)* - In 1 week if each job will be triggered once daily, each one will have run 25 Tests (5 Tests/job x 5 days) - So, 10 Jobs x 25 Tests/job =

Re: Dashboard using test and build result using Jetkins plugin

2016-12-28 Thread Lakshmi narayana
Hi , any luck ? I'm looking for similar stuff could you help here Prepare dash board with all 10 required jobs - *Pass Rate (PR)* - In 1 week if each job will be triggered once daily, each one will have run 25 Tests (5 Tests/job x 5 days) - So, 10 Jobs x 25

Re: How to display the result of the build on the Jenkins Dashboard

2016-12-28 Thread Lakshmi narayana
Hi Karthik, any luck ? I'm looking for similar stuff could you help here Prepare dash board with all 10 required jobs - *Pass Rate (PR)* - In 1 week if each job will be triggered once daily, each one will have run 25 Tests (5 Tests/job x 5 days) - So, 10 Jobs x 25

Re: Jenkins + TFS 2010 CI build issue

2016-12-28 Thread Chetan Dabade
Hi all, I tried the approach mentioned in the below link https://wiki.jenkins-ci.org/display/JENKINS/Monitor+and+Restart+Offline+Slaves The above approach will run Groovy script under Jenkins console.This script can monitor and restart offline nodes if they are not disconnected manually.