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

Maven plugin don't take into account maven-deploy-plugin skip option

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None

      When using the "maven deploy artefact post-job", if in a module we configure a "skip" deployement via
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-deploy-plugin</artifactId>
      <version>2.6</version>
      <configuration>
      <skip>true</skip>
      </configuration>
      </plugin>

      this configuration is not take into account

          [JENKINS-20413] Maven plugin don't take into account maven-deploy-plugin skip option

          I don't quite understand what you mean, all the maven-deployment-linker plugin does, is parsing the logfile for any uploads. It does not change any behavior of the maven execution. So if maven is still uploading stuff, then you have an issue with maven and not with this plugin.

          Dominik Bartholdi added a comment - I don't quite understand what you mean, all the maven-deployment-linker plugin does, is parsing the logfile for any uploads. It does not change any behavior of the maven execution. So if maven is still uploading stuff, then you have an issue with maven and not with this plugin.

          Liya Katz added a comment -

          While some of my poms have property:
          <maven.deploy.skip>true</maven.deploy.skip>
          (or skip=true in maven-deploy-plugin configuration)

          deploy is skipped when running maven commandline, but when using a post-build step 'Deploy artifacts to Maven repository' in Jenkins, all artifacts are deploy, skip is ignored

          Liya Katz added a comment - While some of my poms have property: <maven.deploy.skip>true</maven.deploy.skip> (or skip=true in maven-deploy-plugin configuration) deploy is skipped when running maven commandline, but when using a post-build step 'Deploy artifacts to Maven repository' in Jenkins, all artifacts are deploy, skip is ignored

            Unassigned Unassigned
            alexandregirard Alexandre GIRARD
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: