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

Need a way to server-side disable artifact archival

      In our org using the traditional Maven job type we disable artifact archival as all artifacts need to be published to Artifactory where the downloads are subject to auditable authn/authz. With current implementation of pipeline-maven-pluing it appears that we can only disable this behavior by adding a text file to the source code along-side the Jenkinsfile, I don't see any way under Manage Jenkins to disable archiving artifacts.

          [JENKINS-43966] Need a way to server-side disable artifact archival

          jg_lgc thanks. Global configuration and folder level configuration will come later. This was already a serious change.

          Cyrille Le Clerc added a comment - jg_lgc  thanks. Global configuration and folder level configuration will come later. This was already a serious change.

          Understood. It is indeed disabling artifact archiving in my tests. One question though, if I have multiple stages running withMaven steps, do I need to set the option in every execution?

          Justin Georgeson added a comment - Understood. It is indeed disabling artifact archiving in my tests. One question though, if I have multiple stages running  withMaven steps, do I need to set the option in every execution?

          the config is local to each "withMaven()" block

          Cyrille Le Clerc added a comment - the config is local to each "withMaven()" block

          Are there specific Maven goals for which artifacts are archived?

          Justin Georgeson added a comment - Are there specific Maven goals for which artifacts are archived?

          The identification of generated artifact is not restricted to maven goals or plugins. We archive file that maven plugins register as generated artifacts.

          Maven plugins such ask maven-jar, maven-jar, maven-jar, maven-javadocs generate artifacts.

          Cyrille Le Clerc added a comment - The identification of generated artifact is not restricted to maven goals or plugins. We archive file that maven plugins register as generated artifacts. Maven plugins such ask maven-jar, maven-jar, maven-jar, maven-javadocs generate artifacts.

          Thanks for the explanation. Unless I'm misunderstanding I would say this isn't resolved yet, as I still can't override it in the server config and the title and description are centered on a system-wide setting in Manage Jenkins > Configure System. Any dev team with Jenkinsfile in source can still toggle this setting in source.

          Justin Georgeson added a comment - Thanks for the explanation. Unless I'm misunderstanding I would say this isn't resolved yet, as I still can't override it in the server config and the title and description are centered on a system-wide setting in  Manage Jenkins > Configure System . Any dev team with Jenkinsfile in source can still toggle this setting in source.

          Cyrille Le Clerc added a comment - - edited

          jg_lgc I have created JENKINS-44384 for the centralized definition of these options. I propose to keep this issue closed and to continue on JENKINS-44384.

           

          jg_lgc can you confirm that the capability to disable a publisher through the "withMaven(options: [...])" works for you? It's already an important change that I want to mark as DONE.

          Cyrille Le Clerc added a comment - - edited jg_lgc I have created  JENKINS-44384 for the centralized definition of these options. I propose to keep this issue closed and to continue on  JENKINS-44384 .   jg_lgc can you confirm that the capability to disable a publisher through the " withMaven(options: [...] ) " works for you? It's already an important change that I want to mark as DONE.

          Ok, just wanted to make sure the original intent of the issue isn't getting lost.

           

          Yes, I confirm the capability to disable archive with options does work for me. 

          Justin Georgeson added a comment - Ok, just wanted to make sure the original intent of the issue isn't getting lost.   Yes, I confirm the capability to disable archive with options does work for me. 

          jg_lgc can we follow up on JENKINS-44384 ?

          Cyrille Le Clerc added a comment - jg_lgc can we follow up on  JENKINS-44384  ?

          tested and commented on JENKINS-44384

          Justin Georgeson added a comment - tested and commented on JENKINS-44384

            cleclerc Cyrille Le Clerc
            jg_lgc Justin Georgeson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: