Oh dear... Thanks. But after changing the job i'm again getting the following error:
Started by user Entwicklung <http://dev-jenkins.netfed.de:8080/user/dev> [EnvInject] - Loading node environment variables. Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url XXX@XXX:deploytools/DSL_buildJobs.git # > timeout=10 Fetching upstream changes from XXX@XXX:deploytools/DSL_buildJobs.git > git --version # timeout=10 using GIT_SSH to set credentials jenkins > git fetch --tags --progress XXX@XXX:deploytools/DSL_buildJobs.git > +refs/heads/*:refs/remotes/origin/* > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision b763c301b3b67ee9743718b79b750017b16c1e28 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f b763c301b3b67ee9743718b79b750017b16c1e28 Commit message: "Anpassung -Jabber Notify" > git rev-list --no-walk b866121fc8d47761cb2e992dc5abc7731cb47c2b # timeout=10 [DSL-Global-Credentials] $ groovy /var/lib/jenkins/workspace/DSL-Global-Credentials/global/publishOverSsh.groovy org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /var/lib/jenkins/workspace/DSL-Global-Credentials/global/publishOverSsh.groovy: 2: unable to resolve class jenkins.plugins.publish_over_ssh.BapSshHostConfiguration @ line 2, column 1. import jenkins.plugins.publish_over_ssh.BapSshHostConfiguration ^ 1 error Build step 'Execute Groovy script' marked build as failure Finished: FAILURE ??? Thanks again for helping me out. Volker Am Mittwoch, 4. April 2018 13:36:23 UTC+2 schrieb 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: > > Started by user Entwicklung > [EnvInject] - Loading node environment variables. > Building in workspace /var/lib/jenkins/workspace/DSL-Global-Credentials > Processing provided DSL script > ERROR: startup failed: > script: 33: unable to resolve class BapSshHostConfiguration > @ line 33, column 23. > def configuration = new > BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10]) > ^ > > 1 error > > Finished: FAILURE > > This is my script, i just deleted the host-values ;) > > import jenkins.model.* > import jenkins.plugins.publish_over_ssh.BapSshHostConfiguration > > def inst = Jenkins.getInstance() > def publish_ssh = > inst.getDescriptor('jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin') > > > println > "############################################################################################################" > println "PublishOverSsh - Creating global list of Server/Paths" > println > "############################################################################################################" > > > /* Serverlist > The following has to be set. > > name,hostname,username,encryptedPassword,remoteRootDir,port,timeout,overrideKey,keyPath,key,disableExec > */ > def hosts = [ > > ['Hostalias','hostname','user','encryptedPassword','remoteRootDir',22,30000,false,'','',true] > ] > > println 'Renewing Global Publish-Over-SSH-Server Configs' > > hosts.each { host-> > def configuration = new > BapSshHostConfiguration(host[0],host[1],host[2],host[3],host[4],host[5],host[6],host[7],host[8],host[9],host[10]) > println " - SSH-Host ${host[0]}" > publish_ssh.removeHostConfiguration(host[0]) > publish_ssh.addHostConfiguration(configuration) > } > > I hope one can help. > > Best from DE > Volker > -- 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 protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c754f25d-8fb4-49b3-983c-1cd8748e56e9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
