使用(“对shs的公开”),能否获得exit代码和指挥部产出 I m using the plugin as follows: The wiki page 说(这已经过时,从2011年开始): STDOUT and STDERR from the command execution are recorded in the
Jenkins console.script {
echo "Sending artifacts to machine at " + remoteDirectory
// Use of the ssh publisher plugin over SSH
sshPublisher(
failOnError: false,
publishers: [
sshPublisherDesc(
configName: "my-drive",
transfers: [
sshTransfer(
sourceFiles: mySourceFilesList,
remoteDirectory: remoteDirectory,
flatten: true,
execCommand: commandToExec,
execTimeout: 1800000
)
],
sshRetry: [
retries: 0
]
)
]
)
// How can I get the output of execCommand?
// If the exit code was 1, I want to perform some special steps
// I d also like to include the output of the command in these steps
}
(Specifically, org.codehaus.groovy.util.AbstractConcurrentMap) While doing some profiling of our application thats mixed Java/Groovy, I m seeing a lot of references to the AbstractConcurrentMap class,...