Pipeline: analysis-core steps (findbugs, PMD, etc) and JaCoCo NoSuchMethodError

2016-10-21 Thread Jeremy
Hello, First time posting here, sorry if the format isn't the norm. I am having trouble using the analysis-core and JaCoCo plugins with my Pipeline job. All of those plugins have workflow support. The plugins are not appearing in the Snippet generator, nor are they appearing in the

JIRA/Stash (bitbucket server)/Jenkins setup - build kicking off unnecessarily

2016-10-21 Thread John
Hey everyone: I have Stash (bitbucket server)/Jira integreated setup using Jenkins for CI. I want to kick off my builds on "push to feature branch" only. The issue I have is that the builds are kicking off on these 3 actions as well: * create branch directly in stash * create pull request in

make parameter mandatory

2016-10-21 Thread Bhushan Kittur
Hello , I am planing to make Jenkins string parameter mandatory for one of the jobs and force user to enter an alphanumeric value in the parameter's value field to schedule the job. Can someone let me know how to make a parameter mandatory and accepts only alpha numeric value? Thank you.

Jenkins and the IBM i Series

2016-10-21 Thread Allen Fisher
Hello Everyone- I've been brought in to work on build processes in a very specialized environment. We make software for the IBM iSeries which has Windows components and iSeries components. Has anyone out there used Jenkins to drive processes on the iSeries? I've not had much luck finding

Re: Pipeline : Confused about file access on slaves

2016-10-21 Thread Jonathan Hodgson
On Friday, October 21, 2016 at 6:11:28 PM UTC+1, Baptiste Mathus wrote: > > One thing to understand is that your pipeline is actually always to be run > from/on the master. Each "instruction" if actually sent from the master the > requested node, then kind of checkpointed before going further.

Re: Collecting Workflow Run Info in Pipeline

2016-10-21 Thread Baptiste Mathus
IMO this is fragile because it's not really a job's job. Seems more like a plugin's one. Might be interesting for others btw. Something like a pipeline-runs-summary plugin. Le 18 oct. 2016 5:19 PM, "Zack Sampson" a écrit : > I figured this out. I ended up crawling around the

RE: plugin issue..

2016-10-21 Thread Baptiste Mathus
Yes. Installing plugins by hand is very difficult to do, and can break your instance. At least, test that on a test instance if you don't have internet access on the prod server Le 20 oct. 2016 4:53 PM, "Teichner Peter" a écrit : > Use the plugins page if possible as

Re: Pipeline : Confused about file access on slaves

2016-10-21 Thread Baptiste Mathus
One thing to understand is that your pipeline is actually always to be run from/on the master. Each "instruction" if actually sent from the master the requested node, then kind of checkpointed before going further. So, when you're using a pipeline, it's aware of that. When you're using directly

Re: moving hotfixes along a parallel SDLC

2016-10-21 Thread Baptiste Mathus
OK then let's go back to your original question. You say you"need to bump version numbers". I would guess this is actually not the root reason. Why do you want to do that? I mean: if they are different jobs, so probably for different things, why would want to do that? It does indeed seem

Output of shell command into a variable

2016-10-21 Thread Sam K
Currently, I'm doing this. sh ' > /tmp/aa' def VAR1 = readFile('/tmp/aa') This mostly works. But oftentimes the variable has a newline and so it messes up its usage. Is there a better way to store the output in a variable without having to deal with the newline? thanks -- You

Re: JIRA/Stash (bitbucket server)/Jenkins setup - build kicking off unnecessarily

2016-10-21 Thread Indra Gunawan (ingunawa)
The Stash PR git ref spec is already different than the regular Git build ref spec you can't have all in 1 job/build. From: > on behalf of John > Reply-To:

Re: JIRA/Stash (bitbucket server)/Jenkins setup - build kicking off unnecessarily

2016-10-21 Thread Indra Gunawan (ingunawa)
1.) For the "create branch directly in stash", you can have 1 job triggered with Git SCM strategy "inverse" with "master" (meaning: to trigger only when the new branch or commits are pushed to any branch except "master") 2.) For the "create pull request in stash", you need the Stash Pull

Re: Output of shell command into a variable

2016-10-21 Thread Sam K
Your answer works like a charm, but will still give me a problem with the newline in the end. I added the trim() from the stackoverflow answer and now the output is what I want. Thanks again!! Sam On Friday, October 21, 2016 at 5:20:16 PM UTC-7, Mark Waite wrote: > > If you're inside a

Re: Output of shell command into a variable

2016-10-21 Thread Mark Waite
If you're inside a pipeline script and calling sh (or bat), then you can use a slightly different syntax and it will assign the output of the shell command as the return value. See https://github.com/MarkEWaite/jenkins-bugs/blob/2e662560a42571b18ec32d78d1ac730952075d78/Jenkinsfile#L52 for an

Specifying "LATEST" JDK For Automated Installer

2016-10-21 Thread Justin Holmes
Hello All, I did a fair bit of googling before sending this query, do let me know if this has been answered before. I'm working in an environment that is highly automated. My Jenkins instances are managed as docker containers and elements of JENKINS_HOME are managed via a volume mount. As

Re: What does "cannot start writing logs to a finished node" mean?

2016-10-21 Thread Sven Finsterwalder
I have a similar problem my code looks like this: #!groovy​ timestamps { def checkoutFolderPipelineScript = '/../workspace@script' def buildEnv node('master') { stage("Setup") { echo "${pwd()}" buildEnv = load("${pwd()}${checkoutFolderPipelineScript}/BuildEnvironment.groovy") } }

Re: What does "cannot start writing logs to a finished node" mean?

2016-10-21 Thread kyee
On Friday, October 21, 2016 at 4:21:44 AM UTC-4, Sven Finsterwalder wrote: > > Update the > Pipeline Supporting APIs Plugin > > to 2.10 then it will work again. > Thanks Sven. How do I get Jenkins to see the 2.10

Re: pipeline: Is there a plugin to give a "better console"??

2016-10-21 Thread Jonathan Hodgson
On Thursday, October 20, 2016 at 5:02:34 PM UTC+1, Trever wrote: > > This plugin advertises to allow collapsing sections of the console > > https://wiki.jenkins-ci.org/display/JENKINS/Collapsing+Console+Sections+Plugin > > > Yes, I saw that, and it might be useful, but it doesn't seem to work

Re: pipeline: Is there a plugin to give a "better console"??

2016-10-21 Thread Vincent Latombe
Did you give a try to Blue Ocean? https://jenkins.io/projects/blueocean/ Vincent 2016-10-21 14:01 GMT+02:00 Jonathan Hodgson : > > > On Thursday, October 20, 2016 at 5:02:34 PM UTC+1, Trever wrote: >> >> This plugin advertises to allow collapsing sections of the console

Re: pipeline: Is there a plugin to give a "better console"??

2016-10-21 Thread Jonathan Hodgson
On Friday, October 21, 2016 at 1:09:07 PM UTC+1, Vincent Latombe wrote: > > Did you give a try to Blue Ocean? https://jenkins.io/projects/blueocean/ > > >> I did, It seems promising, but really not that great at the moment. The steps view is close to what I'd like to see, the facility to click

When Connecting to GitLab from Jenkins it is failing

2016-10-21 Thread reddypramodh adalam
Hi, I am just trying to test the connection from Jenkins and it is failing with below error ERROR A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been

systest job gives OptimisticLockException with oracle DB.

2016-10-21 Thread Nandlalaji Singh
Hi i am running systest job locally using local oracle setup. It run fine but on jenkins same systest job is failing with following error. "javax.persistence.OptimisticLockException: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value

Re: pipeline: Is there a plugin to give a "better console"??

2016-10-21 Thread Sverre Moe
That plugin does not seem to support Pipeline. torsdag 20. oktober 2016 18.02.34 UTC+2 skrev Trever følgende: > > This plugin advertises to allow collapsing sections of the console > > https://wiki.jenkins-ci.org/display/JENKINS/Collapsing+Console+Sections+Plugin > > On Thursday, October 20, 2016

Re: What does "cannot start writing logs to a finished node" mean?

2016-10-21 Thread Daniel Jeznach
Hi, I have similar problem as well, I noticed the exception today after upgrading Jenkins to 2.26, but problem with executing parallel tasks appeared earlier (probably after pipeline plugins upgrade). I have too complex parallel delivery to paste here, but I tried to create other one, as

Re: What does "cannot start writing logs to a finished node" mean?

2016-10-21 Thread Sven Finsterwalder
Update the Pipeline Supporting APIs Plugin to 2.10 then it will work again. Am Donnerstag, 20. Oktober 2016 22:36:22 UTC+2 schrieb ky...@kayak.com: > > [Lint KayakFree] [android-lint] Computing warning deltas based

Re: NodeJS Plugin:in windows : npm commends not working

2016-10-21 Thread bolleypally vijay kumar
Thanks Eric for all your help the problem solved when i made shell run mode to Windows batch mode *Problem Solved* On Tuesday, 18 October 2016 20:59:44 UTC+5:30, bolleypally vijay kumar wrote: > > 1. I'm trying to print node and npm version in a jenkins jobs in windows > machine > > I dont

Re: What does "cannot start writing logs to a finished node" mean?

2016-10-21 Thread Daniel Jeznach
Upgrading plugin worked for me, but after update I have no textarea where I can input pipeline script. Only option "Pipeline script from SCM" works for me... :( 2016-10-21 10:21 GMT+02:00 Sven Finsterwalder : > Update the > > Pipeline Supporting APIs Plugin to 2.10 then it will

Pipeline Step plugin, can't figure out where global.jelly should go

2016-10-21 Thread Chris Sawczuk
When writing a plugin which came with a class extending the 'Builder' class, I would place my global.jelly file in a structure similar to: com.myplugin.plugin.PluginStepBuilder/global.jelly But recently I've been developing a plugin which does not use a 'Builder' extension and simply uses

Unicode Character conversion of CHECK MARK in Jenkins showing ✓

2016-10-21 Thread bolleypally vijay kumar
Hi, Im trying to print CHECK MARK before a test to represent it as PASSED in my windows Jenkins server so i used unicode '\u2713 ' (from http://www.fileformat.info/info/unicode/char/2713/index.htm)in my code when i print in my local machine its was good but in jenkins its showing as ✓

Re: Feature branch BRANCH_NAME for PR builds (Github Organization)

2016-10-21 Thread Sean Flanigan
I found a workaround for this, but it does require approving a few methods for the Groovy sandbox, and it costs an extra call to the GitHub API: // TODO use GitHub credentials to avoid rate limiting // See https://developer.github.com/v3/pulls/#get-a-single-pull-request def prUrl = new URL("

IOError: [Errno 11] Resource temporarily unavailable

2016-10-21 Thread Bruno Vilhena
Trying to run an ansible playbook in Jenkins, which starts a docker container (kubernetes-anywhere) to provision an environment. I used to be able to run this without issues, by starting the contain detached and the executing the provisioning command line within the container, from jenkins.