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

Make the plugin fully configurable via configuration-as-code

    XMLWordPrintable

Details

    • 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

            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.

            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.
            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).

            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

              jglick Jesse Glick
              batmat Baptiste Mathus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: