I ended up with the dirty solution of copying the Ansible SSH creds file along side the scripts in the source repo, and invoke Ansible using a Jenkins shell plugin, manually selecting the correct Ansible version and laying out the full ansible-playbook invocation by hand as the last command of the shell script.

On 12/7/2016 9:48 AM, Sophie Field wrote:


Did you find a workaround this? Currently experiencing the same problem.

On Thursday, July 28, 2016 at 3:01:58 PM UTC+1, Francis Lalonde wrote:

    Looking at the code, it is not clear to me what the workaround
    would be - Although somewhat experienced as a user, I am not
    knowledgeable about Jenkins internals. Would this be global
    configuration or a system property?

    Also,because this is a managed, shared Jenkins installation for
    which I am not the admin, I do not have access to most settings
    and would not request a change that would lessen security
    globally. And using a self-built modified Jenkins branch is also
    out of the question... :)

    On Thursday, July 28, 2016 at 4:42:38 AM UTC-4, Stephen Connolly
    wrote:

        Ooooh... I wonder if this is an unintended side-effect of
        Jesse's hack
        
<https://github.com/jenkinsci/workflow-multibranch-plugin/blob/04d93559028b97172ece072ca315b6fb13324380/src/main/java/org/jenkinsci/plugins/workflow/multibranch/BranchJobProperty.java#L68>.
        You might be able to work around it if you enable the hidden
        by default credentials permissions
        
<https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java#L126-L152>
 as
        likely the findCredentialsById
        
<https://github.com/jenkinsci/credentials-plugin/blob/master/src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java#L834-L907>
        method is just not seeing the permissions it requires

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/kNK8Yxw1NB8/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/762d1020-428f-421a-8dc0-aecb6aa66c92%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/762d1020-428f-421a-8dc0-aecb6aa66c92%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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/1a2bf762-9fc0-83e9-285b-9617ed063d1e%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to