Hi, 

I´ve created a simple Pipeline using a class (SSHParams) from my shared 
library: 

public class SSHParams implements Serializable {
    String unixuser
    String dir
    String hostname
    
    /**
     * ctor.
     * 
     * @param unixUser
     * @param hostname
     * @param dir
     */
    public SSHParams( String unixUser, hostname, dir ) {
        setUnixuser(unixUser)
        setHostname(hostname)
        setDir(dir)
    }
    ...
}


import com.mycompany.SSHParams
import com.cloudbees.groovy.cps.NonCPS

@NonCPS
def sampleOutput() {
    SSHParams params = new SSHParams("user","hostname", "dir")

    return params
}

stage "1st stage"
println sampleOutput().toString()

This pipeline starts - and is hanging without any output:

[Pipeline] stage (1st stage)
Using the ‘stage’ step without a block argument is deprecated
Entering stage 1st stage
Proceeding
Aborted by ..... <https://licdci01.bmwgroup.net:10000/testjenkins/user/qxp2548>
Click here to forcibly terminate running steps 
<https://licdci01.bmwgroup.net:10000/testjenkins/job/SSHParams-Test-Pipeline/5/console#>
Terminating stage (1st stage)
Click here to forcibly kill entire build 
<https://licdci01.bmwgroup.net:10000/testjenkins/job/SSHParams-Test-Pipeline/5/console#>
Hard kill!
Finished: ABORTED



What´s going wrong here ?

Thanx for any hints, 

Torsten

-- 
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/3e9f4420-0adf-4522-b72b-258bf1b15f2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to