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

Make the plugin fully configurable via configuration-as-code

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      Artifact Manager S3 1.0

      Description

      Hello, to be honest, I'm not 100% sure if this issue can be solved on CasC side alone. It seems not. I'm filing it here hoping this will be more obvious to the developer(s) of the plugin.

      So, I was able to configure the blob store itself, but didn't find a way to make Jenkins' artifactManager use it.

      unclassified: 
        s3blobstoreconfig: 
          container: "${ARTIFACT_MANAGER_S3_BUCKET_NAME}"
          region: "us-east-1"
          prefix: "twiddling/"
      

      And this worked fine, for the artifactManager part, though, I tried many combinations to no avail for now. I think I'd need some way to cross-reference the s3blobstoreconfig above, but I do not think it is possible and if this is the right path. Likely not.

      Does not work:

       artifactManager: 
         artifactManagerFactories: 
           - JCloudsArtifactManagerFactory
      

      NOTE: I have a testing image available if anyone needs anything.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            S3BlobStoreConfig should have @Symbol("s3BlobStore") or similar to be pretty, and likewise JCloudsArtifactManagerFactory should have @Symbol("jclouds") to be pretty. Other than that, what you are missing is something to configure provider to refer to a S3BlobStore (which also ought to have @Symbol("s3")). IOW you should already be able to configure it, albeit using ugly symbols.

            Show
            jglick Jesse Glick added a comment - S3BlobStoreConfig should have @Symbol("s3BlobStore") or similar to be pretty, and likewise JCloudsArtifactManagerFactory should have @Symbol("jclouds") to be pretty. Other than that, what you are missing is something to configure provider to refer to a S3BlobStore (which also ought to have @Symbol("s3") ). IOW you should already be able to configure it, albeit using ugly symbols.
            Hide
            batmat Baptiste Mathus added a comment - - edited

            Added a PR showing what currently works, and what does not yet (https://github.com/jenkinsci/configuration-as-code-plugin/pull/347).

            Show
            batmat Baptiste Mathus added a comment - - edited Added a PR showing what currently works, and what does not yet ( https://github.com/jenkinsci/configuration-as-code-plugin/pull/347 ).

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                batmat Baptiste Mathus
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: