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

2018-04-05 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Volker Groß > Ok, it seems that the following line is the problem: > > publish_ssh.removeHostConfiguration(host[0]) > > After commenting it out, the job runs perfectly using "Execute system Groovy > s

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

2018-04-05 Thread Volker Groß
Ok, it seems that the following line is the problem: publish_ssh.removeHostConfiguration(host[0]) After commenting it out, the job runs perfectly using "Execute system Groovy script". Volker Am Mittwoch, 4. April 2018 13:36:23 UTC+2 schrieb Volker Groß: > > Hi, > > i'm having a bunch of groov

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

2018-04-05 Thread Volker Groß
Thank you Dirk, for pointing me the right direction, but let me hopefully ask a final question: Is there a way to execute this tiny groovy-script, which runs in the script console without errors, within a Jenkins job? I tried it with using "Execute system Groovy script, which brings up this e

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

2018-04-05 Thread Dirk Heinrichs
From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Volker Groß > Build step 'Execute Groovy script' marked build as failure "Groovy Script" != "System Groovy Script". You can test System Groovy scripts in the Script Console (Manage Jenkins -> Script C

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

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 m

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: S