Jenkins Pipeline - loop over multi string variable with groovy

2018-04-04 Thread John
I'm trying to loop over a var that contains multiple strings (file paths), and then run a shell script against each one. But for some reason everything i try loops over every single letter of the string. Here is my code: def call(Map config) { node('terraform-slave') { cleanWs()

RE: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-04 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Volker Groß > Processing provided DSL script If I look at your script, it doesn't look like a Job-DSL script to me, but like a normal System-Groovy script. HTH... Dirk -- You received this

Script Artifactory Configuration Jenkins

2018-04-04 Thread Virginia Mesa
Good, I'm doing a groovy pipeline for an artifact upload to Artifactory. The project is NPM, and I know that for Gradle or Maven it is necessary to create a type instance: def server = Artifactory.server(env.ARTIFACTORY_ID) def rtGradle = Artifactory.newGradleBuild() or def server =

Re: Script Artifactory Configuration Jenkins

2018-04-04 Thread Virginia Mesa
Hello again, thinking ... could it be that this instance is used to compile the project? Since I do that part in a separate method, I would not need it. Is this possible? El miércoles, 4 de abril de 2018, 12:55:06 (UTC+2), Virginia Mesa escribió: > > > Good, I'm doing a groovy pipeline for

jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-04 Thread Volker Groß
Hi, i'm having a bunch of groovy-scripts, which are at least about 2,5 years old. At the time the scripts where set up, we were able to add publish-over-ssh ssh-servers within the jenkins global configuration tab. After one update those scripts won't run again. I'm always getting this error:

Re: jobdsl - publish-over-ssh - How can i add ssh servers in global configuration

2018-04-04 Thread Volker Groß
Oh dear... Thanks. But after changing the job i'm again getting the following error: Started by user Entwicklung [EnvInject] - Loading node environment variables. Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials > git rev-parse

Blue Ocean + Bitbucket cloud: is it possible to use without a team?

2018-04-04 Thread Alex D
I'm trying to set up a Blue Ocean pipeline. My code repo is on Bitbucket Cloud, and I've discovered two ways to access this repo from Blue Ocean: 1. through a team that owns the repo, or 2. through the user account that owns the repo. None of these tow options are suitable. My repo is not

getting build id while using parallel build

2018-04-04 Thread David Sariel
hello! when running builds = [:] builds[jobs[index]] = { job_info = build job: jobs[index], propagate: true, wait: false, parameters: updated_params println "job_info " + job_info

How to debug java.io.NotSerializableException: hudson.model.Hudson

2018-04-04 Thread Benedikt Spranger
Hi, under load and only under load I observe failing test runs due to java.io.NotSerializableException. Since I have no backtrace and the usage of hudson.model.Hudson is not obvious to me, I spend a lot of time trying to debug this failure. How can I get more informations about this exception?

Re: Upgrade Path for Jenkins/Hudson

2018-04-04 Thread Kohsuke Kawaguchi
Hi, John, Thank you for your perspective. There are a few things in here that I wanted to respond, as the creator of Jenkins. First, I totally understand the frustration you and Thomas, the original poster have. This feeling of fear of upgrade and breakage it might create is something we hear

Re: Could not add HP-ux machine as slave in jenkins

2018-04-04 Thread Chris Lamorena
Thanks Mark for the quick reply! Yea, I was afraid that would be the case, which makes total sense. Thank you very much! On Friday, March 23, 2018 at 11:09:23 AM UTC-7, Mark Waite wrote: > > > > On Fri, Mar 23, 2018 at 11:45 AM Chris Lamorena > wrote: > >> Were you ever

Re: How to get username of users logged in jenkins in logs?

2018-04-04 Thread Long Tran
How about User variables plugin ? Vào 06:43:30 UTC+7 Thứ Sáu, ngày 30 tháng 3 năm 2018, payal halder đã viết: > > How to get username of users logged in Jenkins in logs? > Audit Trail plugin is not helping with username > -- You

Re: Builds run on slave survive after master-slave connection get disconnected ?

2018-04-04 Thread Daniel Beck
> On 4. Apr 2018, at 09:59, Long Tran wrote: > > when I run job on a slave, if the master-slave connection get disconnected > (network fails or something), job build will be fail, how can it survive from > that ? Use Pipeline instead of Freestyle jobs. 'sh' and 'bat'

Builds run on slave survive after master-slave connection get disconnected ?

2018-04-04 Thread Long Tran
I'm using Jenkins 2.89.2 and have few slaves, when I run job on a slave, if the master-slave connection get disconnected (network fails or something), job build will be fail, how can it survive from that ? Slave is launch by method launch via Java Web Start and get installed as Windows

Re: Run Jenkins job based on folder changes on the GIT

2018-04-04 Thread Tomas Bjerre
What Git service do you use? If it is GitHub, there is an example here using Generic Webhook Trigger: https://github.com/jenkinsci/generic-webhook-trigger-plugin/blob/master/src/test/resources/org/jenkinsci/plugins/gwt/bdd/github/github-push-trigger-when-specific-file-changes.feature You can

Feature Request: BlueOcean custom view

2018-04-04 Thread Sverre Moe
Not sure what the plans are for BlueOcean, but the main Pipeline View is very limited. Having favorites helps a little, but it would help a lot more with custom pipeline views. What we are looking for in BlueOcean Pipelines View: * Choose a release branch * List all pipeline jobs for selected