Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49055

Cannot Use New Vault Credentials in Ansible Vault Freestyle Job

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: ansible-plugin
    • Labels:
      None
    • Environment:
      ansible-plugin 0.8.0
    • Similar Issues:

      Description

      The option "New Vault Credentials" in the Ansible Vault build step of a freestyle job displays an error message instead of giving a choice of credentials. This blocks the use of this option and ultimately the entire build step.

        Attachments

          Issue Links

            Activity

            Show
            michaelcresswell Michael Cresswell added a comment - Implemented in  https://github.com/jenkinsci/ansible-plugin/pull/19
            Hide
            michaelcresswell Michael Cresswell added a comment -

            Emilio Escobar , do you have a chance to review this?

            Show
            michaelcresswell Michael Cresswell added a comment - Emilio Escobar , do you have a chance to review this?
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: michaelcresswell
            Path:
            src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleBuilderDescriptor.java
            src/main/java/org/jenkinsci/plugins/ansible/AnsibleVaultInvocation.java
            http://jenkins-ci.org/commit/ansible-plugin/fd4bfd4368a84c8d360d03c4f64fd6dcea0cc602
            Log:
            [FIXED JENKINS-49055] Add method to populate New Vault Credentials for freestyle job. Only call append when there is content since it was adding extra spaces, confusing the Ansible CLI invocation and further blocking the freestyle job. (#19)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: michaelcresswell Path: src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleBuilderDescriptor.java src/main/java/org/jenkinsci/plugins/ansible/AnsibleVaultInvocation.java http://jenkins-ci.org/commit/ansible-plugin/fd4bfd4368a84c8d360d03c4f64fd6dcea0cc602 Log: [FIXED JENKINS-49055] Add method to populate New Vault Credentials for freestyle job. Only call append when there is content since it was adding extra spaces, confusing the Ansible CLI invocation and further blocking the freestyle job. (#19)

              People

              • Assignee:
                escoem Emilio Escobar
                Reporter:
                michaelcresswell Michael Cresswell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: