Pipeline when condition issue

2018-08-28 Thread MDKF
Hi All, I have the following pipeline. I don't expect the steps in the when condition to run, but they are. Can anyone tell me what i'm doing wrong? (I know using an expression instead of a simple equals is overkill, but this is a simplified example to show my issue) -Michael pipeline { //

Active Choices Plugin populated via ssh?

2018-08-28 Thread Robert Nicholson
Can Active Choices Plugin support populating itself using ssh or can it only read a flat 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 from it, send an email to

Email notification based on build log

2018-08-28 Thread debayan chatterjee
Hi Experts, I would like to send notification email based on the build log for a freestyle project. For example if ORA- is present in the build log email subject will be 'Job failed' and if ORA- is not present then email subject will be 'Job succeeded'. Can you please suggest a method to

multi-branch pipeline / kubernetes stage probem

2018-08-28 Thread Gabe Nydick
My Jenkinsfile is below... There are 3 containers defined, each with their appropriate docker image. There are 3 stages defined, each one exclusively uses one of the containers. While exec'd into all of the containers, each one of them have a workspace/@/durable-/script.sh the contents of that

Re: "download" button does nothing

2018-08-28 Thread Slide
It takes you to the "Download" page. It's the same header if you go to just https://jenkins.io. On Tue, Aug 28, 2018 at 3:56 PM Roger Pack wrote: > As a note, on this page: > https://jenkins.io/download/ > Clicking the nice red "download" button near the top seems...to do nothing. > Cheers! >

restart is obscured

2018-08-28 Thread Roger Pack
As a note, I would have expected in the "system configuration" an option to "restart" jenkins. There is an option to "Prepare for shutdown" but not one to actually do the deed. It's a bit confusing...to beginners it's "shouldn't there be an option somewhere in the UI to restart?" Today you

"uninstallation pending" for plugins

2018-08-28 Thread Roger Pack
Just a usability suggestion. As a note, when you click "uninstall" to a plugin it says "uninstallation pending" where the uninstall button was before. But it gives you no further instructions. Suggestion/feature request: change text to say "uninstallation pending restart" to make it clearer, or

"download" button does nothing

2018-08-28 Thread Roger Pack
As a note, on this page: https://jenkins.io/download/ Clicking the nice red "download" button near the top seems...to do nothing. Cheers! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

Re: working kubernetes cloud not available in multi-branch pipeline

2018-08-28 Thread Gabe Nydick
OK, so this is what I have as a POC. I don't see why the pods i'm creating are called 'jenkins-slave' when the pod template i'm inheriting has the pods named 'jenkins-builder' def label = "jenkins-builder-${UUID.randomUUID().toString()}" podTemplate(label: label, inheritFrom: 'jenkins-builder',

Re: working kubernetes cloud not available in multi-branch pipeline

2018-08-28 Thread Carlos Sanchez
It depends on what are you trying to do which is not clear. If you are building a pipeline job you need to use node(label) {} or in declarative agent { label 'my-defined-label' } or use the k8s plugin pipeline capabilities see

Re: working kubernetes cloud not available in multi-branch pipeline

2018-08-28 Thread Gabe Nydick
Oh, and which plugin, is this a kubernetes plugin issue or multi-branch? On Tue, Aug 28, 2018 at 1:01 PM, Gabe Nydick wrote: > I don't see where I can add labels to my job. > > On Tue, Aug 28, 2018 at 1:00 PM, Gabe Nydick wrote: > >> Exactly that section. So I have to add labels to my

Re: working kubernetes cloud not available in multi-branch pipeline

2018-08-28 Thread Gabe Nydick
I don't see where I can add labels to my job. On Tue, Aug 28, 2018 at 1:00 PM, Gabe Nydick wrote: > Exactly that section. So I have to add labels to my multi-branch job to > match the labels in the template? > > On Tue, Aug 28, 2018 at 12:53 PM, Carlos Sanchez > wrote: > >> > When I configure

Re: multi-branch pipeline, shell wrapper script fails

2018-08-28 Thread Gabe Nydick
I did while it was running and there were no symlinks. I might have timed it wrong though, I saw that the content didn't show up right away. I'll try again. On Tue, Aug 28, 2018, 6:11 AM 'Björn Pedersen' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Hi, > The too many levels of

Unexpected behavior instantiating a class from dynamically loaded library

2018-08-28 Thread Hari Krishna Dara
I have a git project docker-build with the below class: $ cat src/docker_build/DockerBuild.groovy package docker_build class DockerBuild { def image def steps DockerBuild(steps) { this.steps = steps steps.docker.withRegistry('...', '...') { image =

how to enable debug to get the line number of an error from JobScriptsSpec

2018-08-28 Thread Jeff Ippolito
So my jobdsl test is failing and the JobScriptsSpec won't give me the line number of where in my groovy file it is failing. I ran the gradle job with the flags --stacktrace and --debug but it did not help. Is there something in the JobScriptsSpec

Re: multi-branch pipeline, shell wrapper script fails

2018-08-28 Thread 'Björn Pedersen' via Jenkins Users
Hi, The too many levels of symbolic links normally hints to a symlink circle. Carefully check the workspace folder (and parents) on the host machine. Björn Am Dienstag, 28. August 2018 11:58:46 UTC+2 schrieb ga...@ridezum.com: > > Here's the condensed output from the build job log... It's

Re: Restrict what jobs can run on nodes created by the Kubernetes plugin

2018-08-28 Thread Adam Dougal
Ah thanks for the quick reply. I'll take a look and have a play. On Tuesday, August 28, 2018 at 11:42:01 AM UTC+1, Carlos Sanchez wrote: > > There is a way to restrict it by folder > https://github.com/jenkinsci/kubernetes-plugin/pull/282/ > > I realized that it was never added to the docs > > >

Restrict what jobs can run on nodes created by the Kubernetes plugin

2018-08-28 Thread Adam Dougal
Hi, Is there any way to restrict what jobs can run on nodes created using the Kubernetes plugin? I've seen the https://plugins.jenkins.io/job-restrictions but it does not look like this integrates with either the Kubernetes plugin or Jenkins pipelines. Is this something that would be useful

Reg scanning the multi branch pipleline

2018-08-28 Thread keshav birla
Hi, Greetings of the day when i create a new pr before going to declarative checkout it is scanning but in my case it should not scan all the branches it should scan only changed branches and triggered the build. Any help be great full to me Thanks -- You received this message because

multi-branch pipeline, shell wrapper script fails

2018-08-28 Thread gabe
Here's the condensed output from the build job log... It's Jenkins 2.140 with all of the latest plugins. It seems to be failing to start creating a log while it wraps my shell script. Not sure how to debug this. [h_ci-cd_dev_2018-08-13-kube-B25Q2OMNNSNLLVD3BXC7FMQBF3IKQYJE4OSTUSVSM65SZ6NCGBAQ]

Re: Pass in a parameter/property specified by Jenkins job, not user

2018-08-28 Thread Adam Hardy
I think I can use env.JOB_BASE_NAME Failing that I can give different jobs different script paths, and call other scripts with parameters. Qiang Ma wrote on 26/08/18 15:20: > Hmm, JOB_NAME would be auto generated based on the branch name. > > > -- You received this message because you are

Re: Jenkins - java.io.IOException: Pipeline: API v2.29 failed to load. - Error Message

2018-08-28 Thread gaurav pant
Hi Poovaraj, You need to first update your jenkins to the v2.121 or later to run this plugin as mentioned in the error. Regards, Gaurav Pant On 28 Aug 2018 12:41, "Poovaraj Thangamariappan" wrote: > Hi Team, > > I am getting below error message while installing Jenkins Plugins. Why is > it

Jenkins - java.io.IOException: Pipeline: API v2.29 failed to load. - Error Message

2018-08-28 Thread Poovaraj Thangamariappan
Hi Team, I am getting below error message while installing Jenkins Plugins. Why is it showing below error message ? Please help me. Machine : Linux Jenkins Version : 2.107.1 java.io.IOException: Pipeline: API v2.29 failed to load. - You must update Jenkins from v2.107.1 to v2.121 or later to