At [Untitled] The user guide describes the DSL:
configurations {
deployerJars
}
repositories {
mavenCentral()
}
dependencies {
deployerJars "org.apache.maven.wagon:wagon-ssh:2.2"
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: "scp://repos.mycompany.com/releases") {
authentication(userName: "me", password: "myPassword")
}
}
}
However when this is executed on a slave for the first time the build seems to hang. Then using --info the following message is repeated on Jenkins.
The authenticity of host ‘host.domain’ can’t be established.
RSA key fingerprint is xx:yy:zz: etc.
Are you sure you want to continue connecting? (yes/no):
When executing the build from commandline and entering yes the build continues and the prompt never appears.
I did actually configure the ssh key using ssh-copy-id on the slave before first build and on commandline for same user I can login without password prompt.
So I need to know how to I tell the underlying ssh client to accept the server key without requiring the acceptance of prompt about key.