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

Create Credentials through CLI

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Credentials plugin should have a CLI(or rest api) operation to create credentials.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java
            src/main/java/com/cloudbees/plugins/credentials/CredentialsSelectHelper.java
            src/main/java/com/cloudbees/plugins/credentials/cli/CredentialsStoreOptionHandler.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsContextResolversCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsProvidersCommand.java
            src/main/resources/com/cloudbees/plugins/credentials/Messages.properties
            http://jenkins-ci.org/commit/credentials-plugin/cea53f39a7779b6479e399cc4d288ff7d96c29ce
            Log:
            JENKINS-28407 Adding some infrastructure to allow for a create credentials CLI command

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java src/main/java/com/cloudbees/plugins/credentials/CredentialsSelectHelper.java src/main/java/com/cloudbees/plugins/credentials/cli/CredentialsStoreOptionHandler.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsContextResolversCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsProvidersCommand.java src/main/resources/com/cloudbees/plugins/credentials/Messages.properties http://jenkins-ci.org/commit/credentials-plugin/cea53f39a7779b6479e399cc4d288ff7d96c29ce Log: JENKINS-28407 Adding some infrastructure to allow for a create credentials CLI command
            Hide
            pjayago Priya Jayagopalan added a comment - - edited

            Hi @stephenconnolly
            I have a use case that I need to add credentials via rest api (in golang)
            Would be great if you add this feature too and provide examples.

            Thanks

            Show
            pjayago Priya Jayagopalan added a comment - - edited Hi @stephenconnolly I have a use case that I need to add credentials via rest api (in golang) Would be great if you add this feature too and provide examples. Thanks
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/com/cloudbees/plugins/credentials/CredentialsSelectHelper.java
            http://jenkins-ci.org/commit/credentials-plugin/d8c8132f45a5c298e3f016e8739574544da17b29
            Log:
            JENKINS-28407 Fix up javadoc warning

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/com/cloudbees/plugins/credentials/CredentialsSelectHelper.java http://jenkins-ci.org/commit/credentials-plugin/d8c8132f45a5c298e3f016e8739574544da17b29 Log: JENKINS-28407 Fix up javadoc warning
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/com/cloudbees/plugins/credentials/CredentialsStoreAction.java
            src/main/java/com/cloudbees/plugins/credentials/cli/BaseCredentialsCLICommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsByXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsDomainByXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsDomainCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsAsXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsDomainAsXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsContextResolversCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsProvidersCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsByXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsDomainByXmlCommand.java
            http://jenkins-ci.org/commit/credentials-plugin/3497ffc9aa5bab9ae1fd43690ab55b22a2c45d31
            Log:
            JENKINS-28407 Let's add the APIs

            • CRUD for credentials (read retains secrets redacted)
            • CRUD for credentials domains
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/com/cloudbees/plugins/credentials/CredentialsStoreAction.java src/main/java/com/cloudbees/plugins/credentials/cli/BaseCredentialsCLICommand.java src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsByXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsDomainByXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsDomainCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsAsXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsDomainAsXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsContextResolversCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsProvidersCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsByXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsDomainByXmlCommand.java http://jenkins-ci.org/commit/credentials-plugin/3497ffc9aa5bab9ae1fd43690ab55b22a2c45d31 Log: JENKINS-28407 Let's add the APIs CRUD for credentials (read retains secrets redacted) CRUD for credentials domains
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsByXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsDomainByXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsDomainCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsAsXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsDomainAsXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsContextResolversCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsProvidersCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsByXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsDomainByXmlCommand.java
            src/main/resources/com/cloudbees/plugins/credentials/cli/Messages.properties
            http://jenkins-ci.org/commit/credentials-plugin/ac2e0700b55aea43df359676944ea83285e404c7
            Log:
            JENKINS-28407 i18n all the things

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsByXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsDomainByXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsDomainCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsAsXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsDomainAsXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsContextResolversCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsProvidersCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsByXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsDomainByXmlCommand.java src/main/resources/com/cloudbees/plugins/credentials/cli/Messages.properties http://jenkins-ci.org/commit/credentials-plugin/ac2e0700b55aea43df359676944ea83285e404c7 Log: JENKINS-28407 i18n all the things
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsByXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsDomainByXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsDomainCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsDomainAsXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsContextResolversCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsProvidersCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsByXmlCommand.java
            src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsDomainByXmlCommand.java
            http://jenkins-ci.org/commit/credentials-plugin/396e9c3f66b4c469cb4218a5a346a706fec152cb
            Log:
            JENKINS-28407 Reformat code

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsByXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/CreateCredentialsDomainByXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/DeleteCredentialsDomainCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/GetCredentialsDomainAsXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsContextResolversCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/ListCredentialsProvidersCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsByXmlCommand.java src/main/java/com/cloudbees/plugins/credentials/cli/UpdateCredentialsDomainByXmlCommand.java http://jenkins-ci.org/commit/credentials-plugin/396e9c3f66b4c469cb4218a5a346a706fec152cb Log: JENKINS-28407 Reformat code
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/test/java/com/cloudbees/plugins/credentials/cli/CLICommandsTest.java
            http://jenkins-ci.org/commit/credentials-plugin/2c01a29dc7b8fc736c5d2288fd284d54d2868b63
            Log:
            JENKINS-28407 Add a test case for the create flow

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/com/cloudbees/plugins/credentials/cli/CLICommandsTest.java http://jenkins-ci.org/commit/credentials-plugin/2c01a29dc7b8fc736c5d2288fd284d54d2868b63 Log: JENKINS-28407 Add a test case for the create flow
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java
            http://jenkins-ci.org/commit/credentials-plugin/da2b063c2eda791e36827c0a70fdb6ad4a8a4373
            Log:
            JENKINS-28407 Findbugs!

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java http://jenkins-ci.org/commit/credentials-plugin/da2b063c2eda791e36827c0a70fdb6ad4a8a4373 Log: JENKINS-28407 Findbugs!

              People

              Assignee:
              stephenconnolly Stephen Connolly
              Reporter:
              schristou Steven Christou
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: