pipeline global library no longer works on latest builds on Windows

2016-05-31 Thread tomwilson001 . us
Hi, Jenkins pipeline global library no longer works for me on Windows which unfortunately my employer choose to use. I simply can't access the workflowLibs.git through the http URL (http://127.0.0.1:8080/workflowLibs.git/ in my case). It give me the Not Found error message even after I

Re: Remove build triggers section

2016-05-31 Thread Daniel Beck
> On 31.05.2016, at 17:59, Victor Martinez > wrote: > > Jenkins.instances?.items `items` will not get items in folders, so is very configuration dependent. `allItems` OTOH will get also get e.g. Matrix configurations. `getAllItems(TopLevelItem.class)` is

Re: Parse CSV data in jenkins job ?

2016-05-31 Thread Daniel Beck
> On 31.05.2016, at 23:25, Beau Henderson wrote: > > I would like to set up a job that parses the data in a CSV/XLS/XML file. Is > there a way to upload / pass along a file when initiating a job run ? This job is parameterized -> File parameter -- You received this

Parse CSV data in jenkins job ?

2016-05-31 Thread Beau Henderson
I would like to set up a job that parses the data in a CSV/XLS/XML file. Is there a way to upload / pass along a file when initiating a job run ? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Re: Pipeline stop/resume gates

2016-05-31 Thread Baptiste Mathus
You can choose whatever suits your need. You are basically gonna catch your calls to steps A & B, and in the catch clause, are going to use some business logic to decide to make it fail, and just continue with a simple if condition. When you're ready, just write those, and ask for review here if

Re: Pipeline stop/resume gates

2016-05-31 Thread Baptiste Mathus
Well, either you didn't give enough info, or seems quite straightforward. The human interaction is the input step. Make sure to use it outside a node { } to not occupy an agent while waiting for user input. I don't see the actual difference you mean between your 1st and 3rd case. 2016-05-31 20:02

Re: deployment of multiple git branches

2016-05-31 Thread Mark Waite
You might consider fingerprinting the artifacts then you can use the Jenkins fingerprint lookup to steer what created that artifact On Tue, May 31, 2016, 12:07 PM Thomas Zoratto wrote: > Tomáš was talking about Docker so let’s take it for example. You could > build a

Re: AWS Elastic Beanstalk deploy fails after 2.7 and plugin upgrade

2016-05-31 Thread Aldrin Leal
Register on github.com/inenieux/awseb-deployment-plugin/issues Thank you -- -- Aldrin Leal, / http://about.me/aldrinleal On Tue, May 31, 2016 at 1:21 PM, Steve Abbitt wrote: > I just updated Jenkins to 2.7 from 2.6 along with about 10 plugins. After >

Re: deployment of multiple git branches

2016-05-31 Thread Thomas Zoratto
Tomáš was talking about Docker so let’s take it for example. You could build a new Docker image for each one of your branches and tag it with the branch name, build number or whatever you prefer. Regarding Nexus or Maven specifically you could use a plugin such as the Maven build number plugin

Pipeline stop/resume gates

2016-05-31 Thread Brian Jones
I want to have a pipeline where segments of the pipeline are only executed upon a human decision, possibly hours or days after the job is started. What is the recommended way to do this using the pipeline plugin? pipeline: Decide to continue case: build step A - build step B - < human

Re: deployment of multiple git branches

2016-05-31 Thread Philipp Meier
Hi, The interesting question for me is how to handle and identify the different artifacts which are built by the several branches. I. e. in Maven you specify a version 1.0.0-snapshot and this is then used to build the Jar. When you're going to deploy this on a machine or a repository (i. e.

Re: Remove build triggers section

2016-05-31 Thread Davi Diório Mendes
This looks like solves my problem! Thanks for response 2016-05-31 12:59 GMT-03:00 Victor Martinez : > Hi, > > You can easily iterate through jenkins groovy api and use the method >

Re: deployment of multiple git branches

2016-05-31 Thread Zoratto Thomas
Hello, You can achieve this with a Jenkinsfile per branch in your repository. Then create a new multibranch pipeline job in Jenkins pointing to your repository and you're done. See https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Multibranch+Plugin Thomas > Le 31 mai 2016 à 14:00, Tomáš

Re: Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-05-31 Thread Greg Smith
Thank you -- This is exactly what I was looking for. Now that I have it, and was able to search the docs for it, I don't know how I missed it Thanks, Greg On Tuesday, May 31, 2016 at 11:54:25 AM UTC-4, Antonio Muñiz wrote: > > You can use `checkout scm` which will clone the repository at

Remove build triggers section

2016-05-31 Thread Victor Martinez
Hi, You can easily iterate through jenkins groovy api and use the method http://javadoc.jenkins-ci.org/hudson/model/AbstractProject.html#removeTrigger(hudson.triggers.TriggerDescriptor) in addition to http://javadoc.jenkins-ci.org/hudson/model/AbstractProject.html#getTriggers() Something

Re: Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-05-31 Thread Antonio Muñiz
You can use `checkout scm` which will clone the repository at the same revision than the previously fetched Jenkinsfile. On Tue, May 31, 2016 at 5:00 PM, Greg Smith wrote: > > Hello, > > I have a question that is probably obvious, but I couldn't seem to find it >

Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-05-31 Thread Greg Smith
Hello, I have a question that is probably obvious, but I couldn't seem to find it anywhere. Apologies for my newbie question: If I have a multibranch Pipeline job, does my Jenkinsfile need to do the git extract? Or should that be assumed as part of the retrieval of the Jenkinsfile? For

Re: Publisher plugins crash in workflow pipeline

2016-05-31 Thread Nicholas Brown
See https://issues.jenkins-ci.org/browse/JENKINS-35234 and https://issues.jenkins-ci.org/browse/JENKINS-35096 On Tuesday, 31 May 2016 14:05:01 UTC+1, Nicholas Brown wrote: > > Your correct: > > Neither of them implement this interface: > >

Remove build triggers section

2016-05-31 Thread Davi Diório Mendes
Hi everyone, I am working with gearman serving multiples jenkins master. The team's architect asked me a way remove build triggers section of jenkins projects, in order to let a gearman client trigger the jobs. I searched a lot and found nothing. Does someone know a plugin to this, or knows if

Re: Publisher plugins crash in workflow pipeline

2016-05-31 Thread Nicholas Brown
I've also raised https://issues.jenkins-ci.org/browse/JENKINS-32524 On Tuesday, 31 May 2016 14:05:01 UTC+1, Nicholas Brown wrote: > > Your correct: > > Neither of them implement this interface: > >

Re: Publisher plugins crash in workflow pipeline

2016-05-31 Thread Nicholas Brown
Your correct: Neither of them implement this interface: https://github.com/jenkinsci/sloccount-plugin/blob/master/src/main/java/hudson/plugins/sloccount/SloccountPublisher.java#L30

Re: deployment of multiple git branches

2016-05-31 Thread Tomáš Bohuněk
I would like to deploy and run each jar file for each feature branch. Project is written in Java and JavaScript. Jar file is built by maven. I need to deploy somehow to one machine each of jar built from each feature branch. On Tuesday, May 31, 2016 at 1:55:21 PM UTC+2, Mark Waite wrote: > >

Re: deployment of multiple git branches

2016-05-31 Thread Mark Waite
I think you'll need to provide more details about the problem you're trying to solve, and the languages you're using to solve it. For example, since you mentioned that you're deploying to tomcat, are you writing in Java or some other JRE supported language (like Scala)? Are you building your jar

Re: deployment of multiple git branches

2016-05-31 Thread Tomáš Bohuněk
Sorry for mistake. You are right. I have one single git repository (one project) with a few feature branches. On Tuesday, May 31, 2016 at 1:44:19 PM UTC+2, Mark Waite wrote: > > Could you explain further what you mean by "multiple git repository (one > project with few feature branches)"? > >

Re: deployment of multiple git branches

2016-05-31 Thread Mark Waite
Could you explain further what you mean by "multiple git repository (one project with few feature branches)"? The phrase "multiple git repository" seems to be in conflict with the phrase "one project". I typically place a project in a single git repository with a few feature branches as

Re: Violations cause a java.lang.IllegalStateException: cannot change build result while in COMPLETED

2016-05-31 Thread Amedee Van Gasse
I also have this error in Jenkins 2.7 On Tuesday, October 14, 2014 at 7:05:57 PM UTC+2, llaumgui wrote: > > Hi, > > with Jenkins 1.584 and Violations plugin 0.7.11, when I build my project > on Jenkins, I have a successfull build, but a IllegalStateException caused > by Violations plugins cause

Re: Pipeline Global Library vars file naming convention

2016-05-31 Thread Sverre Moe
Well if it is a bug. I was not entirely sure as I have just begun using Pipeline. I will create a bug report of this problem. tirsdag 31. mai 2016 12.55.59 UTC+2 skrev Daniel Beck følgende: > > > > On 31.05.2016, at 12:01, Sverre Moe > wrote: > > > > This naming does not

Re: Stable version of Jenkins and the Robot Framework Plugin?

2016-05-31 Thread Daniel Beck
> On 27.05.2016, at 17:54, developer.go...@gmail.com wrote: > > 1.651.2 LTS and 1.6.4, the report and log files cannot be opened from within > Jenkins. Does anyone know of a stable release that in the 1.6X series or the > 2.X series that works with the current robot framework plugin? Probably

Re: How can i store ne information and/or file in the build folder ?

2016-05-31 Thread Daniel Beck
> On 27.05.2016, at 16:11, Lionel Hubeau wrote: > > For your information, the created files are not part of the deployable > artifacts but are only files containing some informations about the build > wich were excuted. > How can i do this task ? You can

Re: Publisher plugins crash in workflow pipeline

2016-05-31 Thread Daniel Beck
Check the snippet generator if those types appear there for the 'General Step'. If they don't, they cannot be used that way, as they're not implementing the required API (SimpleBuildStep in this case). Also, https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md > On

Re: Running a pipeline job on all the nodes with the same label

2016-05-31 Thread Daniel Beck
> On 26.05.2016, at 15:44, Michael Pereira wrote: > > With a few modifications it should do the job, but it is still a lot of code. > I'm dreaming about things like: > node(label='slave', run_on_all_matching_nodes=true) { > // some block > } > Is this even possible?

Re: maven projects become slow after a couple of months

2016-05-31 Thread Daniel Beck
Is there a workspace-private local Maven repository? Maybe repository operations (up to date check?) take long… I think for Maven jobs, you should be able to see internal state (current threads' stacks?) in the Jenkins UI. > On 30.05.2016, at 10:14, Jorg Heymans wrote:

Re: Maven projects ending with

2016-05-31 Thread Daniel Beck
> On 30.05.2016, at 10:06, chnik...@gmail.com wrote: > > Please advice since this is blocking our production. Could this be caused by the security update, and you're relying on an undeclared build parameter here?

Re: Exporting evironment variables from Groovy script doesn't work

2016-05-31 Thread Daniel Beck
> On 30.05.2016, at 10:18, chnik...@gmail.com wrote: > > We are currently using Jenkins version 2.7. > After upgrading from 1.647, we have the problem that environment variables > created in a Groovy script are not exported and visible in a following shell > script. > The projects are

deployment of multiple git branches

2016-05-31 Thread Tomáš Bohuněk
What do you recommend for deployment of multiple git repository (one project with few feature branches). Final artifact is JAR with bundled Tomcat application server. I usually run this JAR in Docker container. What do you prefer? -- You received this message because you are subscribed to the

Re: Global Tool Configuration crash in Jenkins 2.6 latest global tool config

2016-05-31 Thread Daniel Beck
> On 30.05.2016, at 20:20, Warren Postma wrote: > > Appears to be fixed in 2.7. Looks like a Slack Plugin issue, probably https://github.com/jenkinsci/slack-plugin/issues/191 -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: Proxy and certificate

2016-05-31 Thread Daniel Beck
> On 26.05.2016, at 16:46, sebastienjfoss...@free.fr wrote: > > The "Test URL" was "http://jenkins-ci.org/; ; there is no problem for > accessing this URL in brower with same proxy configuration. Could be Oracle Java not accepting letsencrypt certificates, while all modern browsers do. --

Re: Pipeline Global Library vars file naming convention

2016-05-31 Thread Daniel Beck
> On 31.05.2016, at 12:01, Sverre Moe wrote: > > This naming does not work: > vars/packageInformation.groovy > > I get the following exception when calling a function > packageInformation.init() > java.lang.NullPointerException: Cannot invoke method init() on null object

Re: Jenkins 2.7 - How to list all files in a directory

2016-05-31 Thread Daniel Beck
> On 30.05.2016, at 19:43, Kristian wrote: > > for f in $(ls *.c); do Also, this is wrong. `for f in *.c` does the same thing, but has fewer bugs (spaces in file names etc.) -- You received this message because you are subscribed to the Google Groups "Jenkins

Pipeline Global Library vars file naming convention

2016-05-31 Thread Sverre Moe
This naming does not work: vars/packageInformation.groovy I get the following exception when calling a function packageInformation.init() java.lang.NullPointerException: Cannot invoke method init() on null object This works vars/packageinformation.groovy According to the instructions/tutorial

Re: Jenkins 2.7 - How to list all files in a directory

2016-05-31 Thread Daniel Beck
> On 30.05.2016, at 19:43, Kristian wrote: > > Is this a bug? Are there any workarounds? Looks like there are no such files and then the shell does not glob. Look for 'nullglob' in `man bash`. -- You received this message because you are subscribed to the Google

j_acegi_security_check is not accessible

2016-05-31 Thread Jarno Hämäläinen
Dear Jenkins users I installed latest Jenkins of the Ubuntu 16.04 machine as instructed in https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu I got it running (sudo service jenkins start) and I'm able to open it by browsing http://:8080 The problem I'm facing is that when

Re: Unable to anonymously clone a Jenkins scriptler repository

2016-05-31 Thread Daniel Beck
> On 26.05.2016, at 00:00, Mark Eggers wrote: > > So I'm missing something in my upgrade from 1.656 to 2.x? > Wild guess -- your security configuration changed between releases, now anonymous doesn't have the relevant permissions anymore. -- You received this message

Re: Error after upgrade: Prime size must be multiple of 64

2016-05-31 Thread Peter Marcoen
I have created the following ticket: https://issues.jenkins-ci.org/browse/JENKINS-35231 Op dinsdag 31 mei 2016 10:03:20 UTC+2 schreef Peter Marcoen: > > After some more research I found out that the Jenkins upgrade from 2.1 to > 2.7 was not the cause of the problem. > The cause is the upgrade

Re: Error after upgrade: Prime size must be multiple of 64

2016-05-31 Thread Peter Marcoen
After some more research I found out that the Jenkins upgrade from 2.1 to 2.7 was not the cause of the problem. The cause is the upgrade of the Publish Over SSH plugin from 1.13 to 1.14. Op maandag 30 mei 2016 10:17:25 UTC+2

Re: Multi-Branch project with svn externals

2016-05-31 Thread Lars Meynberg
I've created a BUG now: https://issues.jenkins-ci.org/browse/JENKINS-35227 Am Montag, 2. Mai 2016 16:11:51 UTC+2 schrieb Lars Meynberg: > > We have setup a multi-branch project with a Jenkinsfile. The detection is > working fine but we're using external links for some stuff and everytime > when