Need pipeline script help

2016-12-05 Thread Venkat S
I am very new for Jenkins. i am try to create Jenkins pipeline script. Please help me out develop pipeline script. if you have any syntax share with me. Thanks Venkat -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this

Demo Days

2016-12-05 Thread Patrick Wolf
As you may know, CloudBees has a team of Engineers dedicated to working on issues and new features in Jenkins. This includes the plugins we contribute and maintain (Pipeline, Folders, etc) as well as Jenkins core (Remoting, Security, etc.). This is in addition to the team that is working on the

Job unexpectedly being stopped with success exit code after exactly one hour

2016-12-05 Thread mike
I have a long running Jenkins job that can run for more than one hour. Via shell scripts, it kicks off an activity in AWS (runs a docker container as a task), then monitors the state of the task every 30 seconds and ends when the task finishes. As part of the process, it finishes by logging

Re: pipeline : remote file operation on the windows slave no longer work

2016-12-05 Thread Joel Reed
This seemed to work for me: stage("Testing"){ node ("VS2013") { echo "Substage running on Windows" bat "echo user %USERDOMAIN%\\%USERNAME%" } } I don't know if it was your cut and paste or if you were in fact not properly encapsulating the stage { ... }. I would have

Regenerating initial administrator token

2016-12-05 Thread 'Claudiu Guiman' via Jenkins Users
Hi, I'm trying to create a VHD with Jenkins that when deployed again it will regenerate the Administrator token and prompt the user to enter it again. This shouldn't be a clean install, the plugins installation step shouldn't run again, just the user creation set-up should be re-run. What files

Jenkins PHP + Java

2016-12-05 Thread Edwin Ilovares
Hi all, I'm new using Jenkins, and I need to CI a PHP application, beacouse I need generate a Sonar report for the java classes into this project. so... I dont undertand - Can I integrate java classes inner a PHP project? - how can I build the pom.xml files? - Am I doing the irght

Amazon EC2 instance dies on installing Java

2016-12-05 Thread jbrooks
Hi all, I'm using the Amazon EC2 plugin to create new agents. I've set it up to use the Ubuntu 16.04 AMI. Security groups, availability zones, and remote user (ubuntu) are all correct. The EC2 key pair is correct and successfully connects on testing. I specified that the root prefix should be

Re: Email reports for passing builds

2016-12-05 Thread Victor Martinez
You can most likely use: - https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin Cheers On Monday, 5 December 2016 19:49:54 UTC, Narayana Prasad wrote: > > I need to send emails reports after build is successful along with results > ( not just failure) possibly attaching some cucumber

Email reports for passing builds

2016-12-05 Thread NP
I need to send emails reports after build is successful along with results ( not just failure) possibly attaching some cucumber reports. Has anyone done similar thing ? Sent from my iPhone -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Can I execute a script every time a build gets deleted?

2016-12-05 Thread jleggett
Our build artifacts are stored outside of Jenkins. Each jenkins build result(artifacts) can possibly be located in 3 different places on the file system. To keep the file system from becoming filled with old builds, I would like to execute a script every time a build is deleted in Jenkins to

Re: Conditional BuildStep Plugin don't fail the build

2016-12-05 Thread jerome
you can use direct assigantion to currentBuild result variable: currentBuild.result = 'FAILURE' avaiable value are (not sure I got them all): 'UNSTABLE', 'SUCCESS', 'FAILURE', 'ABORTED', 'NOT_BUILT' -- You received this message because you are subscribed to the Google Groups "Jenkins Users"

Re: Jenkins Pipeline : How could I access the git repository cloned at job start

2016-12-05 Thread Jean-Luc Pinardon
Hi, Thanks a lot for the explanation. In fact, I must come back to the very first reason of my question. My concern is that the jenkinsfile, so the pipeline, is supposed to be executed by taking first into account a property file that will be used to configure the whole build chain. So it seemed

Re: Jenkins Pipeline : How could I access the git repository cloned at job start

2016-12-05 Thread nicolas de loof
the Jenkinsfile detection indeed relies on a git clone on master, but this isn't considered a workspace. Also, it might not be necessary for some integrations, typically one could access this specific file remotely (not sure about the actual implementation) To get the exact commit that triggered

Re: Jenkins Pipeline : How could I access the git repository cloned at job start

2016-12-05 Thread Jean-Luc Pinardon
Hi, Chritoph Nenning, Thanks for your answer. >AFAIK you cannot use the workspace that jenkins creates to checkout Jenkinsfile. So, it means as you say after, that I need to checkout agoin files I already checked out just before. That's what I wanted to avoid. Simply because I don't like to do

Problem with Repository Connector Plugin example?

2016-12-05 Thread kent
I have tried to use the repository connector plugin to fetch a an artifact using the artifact resolver with a version specified with the artifact parameter selected as a build parameter. However it doesn't seem to resolve the version parameter properly? I have in fact configured the same

Re: Conditional BuildStep Plugin don't fail the build

2016-12-05 Thread Christoph Nenning
Hi, > there is a way to mark the build as failed? You could throw a (groovy) exception Regards, Christoph > From: Stefano Cognigni > To: jenkinsci-users@googlegroups.com, > Date: 05.12.2016 09:18 > Subject: Re: Conditional BuildStep Plugin don't fail the build >

Re: Jenkins Pipeline : How could I access the git repository cloned at job start

2016-12-05 Thread Christoph Nenning
Hi, > Where do you put this ws step ? You can put it at the beginning of your Jenkinsfile > My concern is how to benefit from the SCM schedule and checkout > phase made to retrieve the so called jenkinsfile, i.e. the script > (and possible libraries) that is executed to run the pipeline.

Re: Conditional BuildStep Plugin don't fail the build

2016-12-05 Thread Stefano Cognigni
there is a way to mark the build as failed? Il 03/12/2016 01:10, Daniel Beck ha scritto: 'on evaluation failure' means 'when the regex is invalid'. It's not "when it doesn't match". On 02.12.2016, at 09:44, Stefano wrote: Hello, i have a problem with Conditional

Re: Jenkins Pipeline : How could I access the git repository cloned at job start

2016-12-05 Thread Jean-Luc Pinardon
Hello, Thanks for your answer. But I am not sure to understand. Where do you put this ws step ? I am not sure to have been clear enough. My concern is how to benefit from the SCM schedule and checkout phase made to retrieve the so called jenkinsfile, i.e. the script (and possible libraries) that