From bf737dc12df71125eb9d6f71ffdd7e8cbca3b3d3 Mon Sep 17 00:00:00 2001 From: Geoffroy Van Elsuve Date: Tue, 27 Sep 2016 14:46:54 +0200 Subject: [PATCH] Remove -k when using sshpass, this is not need by Jenkins and freezing ansible-playbook --- .../jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java b/src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java index d134955..bae3117 100644 --- a/src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java +++ b/src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java @@ -191,7 +191,7 @@ protected ArgumentListBuilder appendCredentials(ArgumentListBuilder args) } } else if (credentials instanceof UsernamePasswordCredentials) { args.add("-u").add(credentials.getUsername()); - args.add("-k"); + //args.add("-k"); // Not working, this is freezing Jenkins. } return args; }