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

When using withMaven, "mvn deploy" no longer uploads artifacts to Nexus.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • pipeline-maven-plugin
    • None

      When using withMaven within my pipeline's constructs, the deploy plugin no longer tries to upload artifacts to Nexus. If I remove (comment out) the withMaven block, everything goes back to normal and deployment works.

      However, I obviously lose all the publishers I'm interested in (JUnit, JaCoCo, etc.). I'm using withMaven() { ... }  (i.e. default mode, no special options or constructs).

      In particular, I very strongly desire to not store actual build artifacts in Jenkins since they're already meant to be housed in Nexus (i.e. why double-store?).

      I need Maven to be the "agent" performing the upload to Nexus since the target repository may change "dynamically" depending on certain criteria (i.e. a Maven profile that gets activated based on envvars and such) and special circumstances (we're working to remove this, but for now it's a requirement).

      The deploy plugin in use is 3.1.1, but also fails with 2.7.

          [JENKINS-72414] When using withMaven, "mvn deploy" no longer uploads artifacts to Nexus.

          Diego created issue -
          Diego made changes -
          Priority Original: Blocker [ 1 ] New: Critical [ 2 ]
          Diego made changes -
          Description Original: When using withMaven within my pipeline's constructs, the deploy plugin no longer tries to upload artifacts to Nexus. If I remove (comment out) the withMaven block, everything goes back to normal and deployment works.

          However, I obviously lose all the publishers I'm interested in (JUnit, JaCoCo, etc.).

          In particular, I very strongly desire to not store actual build artifacts in Jenkins since they're already meant to be housed in Nexus (i.e. why double-store?).

          I need Maven to be the "agent" performing the upload to Nexus since the target repository may change "dynamically" depending on certain criteria (i.e. a Maven profile that gets activated based on envvars and such) and special circumstances (we're working to remove this, but for now it's a requirement).

          The deploy plugin in use is 3.1.1, but also fails with 2.7.
          New: When using withMaven within my pipeline's constructs, the deploy plugin no longer tries to upload artifacts to Nexus. If I remove (comment out) the withMaven block, everything goes back to normal and deployment works.

          However, I obviously lose all the publishers I'm interested in (JUnit, JaCoCo, etc.). I'm using withMaven() \{ ... }  (i.e. default mode, no special options or constructs).

          In particular, I very strongly desire to not store actual build artifacts in Jenkins since they're already meant to be housed in Nexus (i.e. why double-store?).

          I need Maven to be the "agent" performing the upload to Nexus since the target repository may change "dynamically" depending on certain criteria (i.e. a Maven profile that gets activated based on envvars and such) and special circumstances (we're working to remove this, but for now it's a requirement).

          The deploy plugin in use is 3.1.1, but also fails with 2.7.

          Mark Waite added a comment -

          drivera thanks for using Jenkins. When I read your bug report, I'm not sure of the steps that need to be taken to duplicate the issue. If you want others to consider investigating the issue, please provide enough details so that others can duplicate the problem. "How to report an issue" describes the types of information that are needed, including things like:

          • operating system
          • Java versions
          • plugins and their versions
          • installation method / runtime environment (container or standalone)
          • detailed steps that others can take to duplicate the problem, including a sample Pipeline job that shows the issue

          Mark Waite added a comment - drivera thanks for using Jenkins. When I read your bug report, I'm not sure of the steps that need to be taken to duplicate the issue. If you want others to consider investigating the issue, please provide enough details so that others can duplicate the problem. "How to report an issue" describes the types of information that are needed, including things like: operating system Java versions plugins and their versions installation method / runtime environment (container or standalone) detailed steps that others can take to duplicate the problem, including a sample Pipeline job that shows the issue

          Diego added a comment - - edited

          Yes, sorry. Here are more details (some updates to the Environment field, above):

          • Installation method: Jenkins is containerized in Docker
          • Agents are running in a separate Docker instance
          • Pipeline for testing:
            pipeline
            {
            
            	agent any
            
            	tools
            	{
            		jdk "11"
            		maven "latest"
            	}
            
            	stages
            	{
            		stage("Compile")
            		{
            			steps
            			{
            				withFolderProperties
            				{
            					// mvn() is a function that adds other flags if required, the final command executed is:
            					// mvn -Dstyle.color=always -T 6 -B deploy -Drevision=... -Dsha1=... -DdeployAtEnd=true -DretryFailedDeploymentCount=5 -DskipITs
            					// (it also takes into account if MVN_SCRIPT is set, and uses it if available, for when withMaven{} is used
            					mvn("-Dstyle.color=always -T 6 -B deploy");
            				}
            			}
            		}
            	}
            }
            
          • POM file:
            <?xml version="1.0" encoding="UTF-8"?>
            <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
                <modelVersion>4.0.0</modelVersion>
                <groupId>com.group.id</groupId>
                <artifactId>neo4j-demo</artifactId>
                <version>${revision}</version>
                <packaging>jar</packaging>
                <name>Neo4j Demo Analytics</name>
                <description>Neo4j Demo Analytics</description>
                <inceptionYear>2020</inceptionYear>
            
                <properties>
                    <revision>1.2.3</revision>
                    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                </properties>
            
                <scm>
                    <connection>scm:git:${git.repository}</connection>
                    <developerConnection>scm:git:${git.repository}</developerConnection>
                    <url>${git.repository}</url>
                    <tag>HEAD</tag>
                </scm>
            
                <distributionManagement>
                    <snapshotRepository>
                        <id>repo.snapshot</id>
                        <url>https://nexus.server.com/nexus/content/repositories/repo.snapshot/</url>
                    </snapshotRepository>
                    <repository>
                        <id>repo.release</id>
                        <url>https://nexus.server.com/nexus/content/repositories/repo.release/</url>
                    </repository>
                </distributionManagement>
            
                <build>
                    <plugins>
                        <plugin>
                            <groupId>com.amashchenko.maven.plugin</groupId>
                            <artifactId>gitflow-maven-plugin</artifactId>
                            <version>1.20.0</version>
                            <configuration>
                                <!-- optional configuration -->
                                <skipUpdateVersion>true</skipUpdateVersion>
                                <versionProperty>revision</versionProperty>
                            </configuration>
                        </plugin>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-jar-plugin</artifactId>
                            <version>3.3.0</version>
                            <configuration>
                                <archive>
                                    <manifestEntries>
                                        <SCM-Branch>${scmBranch}</SCM-Branch>
                                        <SCM-Revision>${commitHash}</SCM-Revision>
                                        <SCM-Build-Time>${buildTimestamp}</SCM-Build-Time>
                                    </manifestEntries>
                                </archive>
                                <excludes>
                                    <exclude>**/.*.sw*</exclude>
                                    <exclude>**/.sw*</exclude>
                                    <exclude>**/*~</exclude>
                                </excludes>
                            </configuration>
                        </plugin>
                        <plugin>
                            <groupId>org.codehaus.mojo</groupId>
                            <artifactId>buildnumber-maven-plugin</artifactId>
                            <version>3.2.0</version>
                            <executions>
                                <execution>
                                    <id>create-commitHash</id>
                                    <phase>generate-sources</phase>
                                    <goals>
                                        <goal>create</goal>
                                    </goals>
                                    <configuration>
                                        <doCheck>false</doCheck>
                                        <doUpdate>false</doUpdate>
                                        <shortRevisionLength>40</shortRevisionLength>
                                        <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
                                        <revisionOnScmFailure>unknown</revisionOnScmFailure>
                                        <buildNumberPropertyName>commitHash</buildNumberPropertyName>
                                    </configuration>
                                </execution>
                                <execution>
                                    <id>create-buildTimestamp</id>
                                    <phase>generate-sources</phase>
                                    <goals>
                                        <goal>create-timestamp</goal>
                                    </goals>
                                    <configuration>
                                            <timestampPropertyName>buildTimestamp</timestampPropertyName>
                                            <timestampFormat>yyyy-MM-dd'T'HH:mm:ssZZ</timestampFormat>
                                            <timezone>UTC</timezone>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-deploy-plugin</artifactId>
                            <version>3.1.1</version>
                        </plugin>
                        <plugin>
                            <groupId>org.codehaus.mojo</groupId>
                            <artifactId>flatten-maven-plugin</artifactId>
                            <version>1.5.0</version>
                            <configuration>
                                <updatePomFile>true</updatePomFile>
                                <flattenMode>resolveCiFriendliesOnly</flattenMode>
                            </configuration>
                            <executions>
                                <execution>
                                    <id>flatten.process-resources</id>
                                    <phase>process-resources</phase>
                                    <goals>
                                        <goal>flatten</goal>
                                    </goals>
                                </execution>
                                <execution>
                                    <id>flatten.clean</id>
                                    <phase>clean</phase>
                                    <goals>
                                        <goal>clean</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </build>
            </project>
            

          The withMaven block is within the mvn() function. When the block is active, and I add "-X" to the maven command, I get a curious behavior in the logs:

          [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ neo4j-demo ---
          [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for apache.snapshots (http://people.apache.org/maven-snapshot-repository).
          [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=66731, ConflictMarker.markTime=36574, ConflictMarker.nodeCount=32, ConflictIdSorter.graphTime=39818, ConflictIdSorter.topsortTime=20662, ConflictIdSorter.conflictIdCount=14, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=467839, ConflictResolver.conflictItemCount=32, DefaultDependencyCollector.collectTime=6369188, DefaultDependencyCollector.transformTime=662310}
          [DEBUG] org.apache.maven.plugins:maven-deploy-plugin:jar:2.7
          [DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.6:compile
          [DEBUG]    org.apache.maven:maven-project:jar:2.0.6:compile
          [DEBUG]       org.apache.maven:maven-settings:jar:2.0.6:compile
          [DEBUG]       org.apache.maven:maven-profile:jar:2.0.6:compile
          [DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
          [DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
          [DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
          [DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
          [DEBUG]          junit:junit:jar:3.8.1:compile
          [DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
          [DEBUG]    org.apache.maven:maven-model:jar:2.0.6:compile
          [DEBUG]    org.apache.maven:maven-artifact:jar:2.0.6:compile
          [DEBUG]    org.codehaus.plexus:plexus-utils:jar:1.5.6:compile
          [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7
          [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7
          [DEBUG]   Imported:  < maven.api
          [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7
          [DEBUG]   Included: org.apache.maven.plugins:maven-deploy-plugin:jar:2.7
          [DEBUG]   Included: junit:junit:jar:3.8.1
          [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.6
          [DEBUG] Configuring mojo org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@5cb0d902]
          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy' with basic configurator -->
          [DEBUG]   (f) artifact = com.group.id:neo4j-demo:pom:2023.01.02-SNAPSHOT
          [DEBUG]   (f) attachedArtifacts = [com.group.id:neo4j-demo:zip:2023.01.02-SNAPSHOT]
          [DEBUG]   (s) localRepository =       id: local
                url: file:///cache/mvn/
             layout: default
          snapshots: [enabled => true, update => always]
           releases: [enabled => true, update => always]
             blocked: false
          
          [DEBUG]   (f) offline = false
          [DEBUG]   (f) packaging = pom
          [DEBUG]   (f) pomFile = /home/jenkins/workspace/itlab_arkcase_neo4j-demo_develop/.flattened-pom.xml
          [DEBUG]   (f) project = MavenProject: com.group.id:neo4j-demo:2023.01.02-SNAPSHOT @ /home/jenkins/workspace/itlab_arkcase_neo4j-demo_develop/.flattened-pom.xml
          [DEBUG]   (f) retryFailedDeploymentCount = 5
          [DEBUG]   (f) skip = false
          [DEBUG]   (f) updateReleaseInfo = false
          [DEBUG] -- end configuration --
          [DEBUG] Using transporter WagonTransporter with priority -1.0 for https://nexus.server.com/nexus/content/repositories/repo.snapshot/
          [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://nexus.server.com/nexus/content/repositories/repo.snapshot/ with username=svc.10.1.jenkins, password=***
          [DEBUG] Writing tracking file /cache/mvn/com.group.id/neo4j-demo/2023.01.02-SNAPSHOT/resolver-status.properties
          [DEBUG] Writing tracking file /cache/mvn/com.group.id/neo4j-demo/resolver-status.properties
          13:08:35  [DEBUG] Using transporter WagonTransporter with priority -1.0 for https://nexus.server.com/nexus/content/repositories/repo.snapshot/
          13:08:35  [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://nexus.server.com/nexus/content/repositories/repo.snapshot/ with username=svc.10.1.jenkins, password=***
          13:08:35  [DEBUG] Writing tracking file /cache/mvn/com.group.id/neo4j-demo/2023.01.02-SNAPSHOT/resolver-status.properties
          13:08:35  [INFO] ------------------------------------------------------------------------
          13:08:35  [INFO] BUILD SUCCESS
          13:08:35  [INFO] ------------------------------------------------------------------------
          

          Note that after "Writing tracking file" it automatically ends the deployment attempt. If I remove the withMaven {} block, it executes the deployment afterwards. In particular, I found this blog post which describes a possible situation in play re: Maven classloaders. I did try removing the deployAfter and retryFailedDeploymentCount parameters as well, but that also had no effect.

          As mentioned above, I used both the 2.7 and 3.1.1 versions of the deploy plugin and both had the same behavior.

          Diego added a comment - - edited Yes, sorry. Here are more details (some updates to the Environment field, above): Installation method: Jenkins is containerized in Docker Agents are running in a separate Docker instance Pipeline for testing: pipeline { agent any tools { jdk "11" maven "latest" } stages { stage( "Compile" ) { steps { withFolderProperties { // mvn() is a function that adds other flags if required, the final command executed is: // mvn -Dstyle.color=always -T 6 -B deploy -Drevision=... -Dsha1=... -DdeployAtEnd= true -DretryFailedDeploymentCount=5 -DskipITs // (it also takes into account if MVN_SCRIPT is set, and uses it if available, for when withMaven{} is used mvn( "-Dstyle.color=always -T 6 -B deploy" ); } } } } } POM file: <?xml version= "1.0" encoding= "UTF-8" ?> <project xmlns= "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" > <modelVersion> 4.0.0 </modelVersion> <groupId> com.group.id </groupId> <artifactId> neo4j-demo </artifactId> <version> ${revision} </version> <packaging> jar </packaging> <name> Neo4j Demo Analytics </name> <description> Neo4j Demo Analytics </description> <inceptionYear> 2020 </inceptionYear> <properties> <revision> 1.2.3 </revision> <project.build.sourceEncoding> UTF-8 </project.build.sourceEncoding> </properties> <scm> <connection> scm:git:${git.repository} </connection> <developerConnection> scm:git:${git.repository} </developerConnection> <url> ${git.repository} </url> <tag> HEAD </tag> </scm> <distributionManagement> <snapshotRepository> <id> repo.snapshot </id> <url> https://nexus.server.com/nexus/content/repositories/repo.snapshot/ </url> </snapshotRepository> <repository> <id> repo.release </id> <url> https://nexus.server.com/nexus/content/repositories/repo.release/ </url> </repository> </distributionManagement> <build> <plugins> <plugin> <groupId> com.amashchenko.maven.plugin </groupId> <artifactId> gitflow-maven-plugin </artifactId> <version> 1.20.0 </version> <configuration> <!-- optional configuration --> <skipUpdateVersion> true </skipUpdateVersion> <versionProperty> revision </versionProperty> </configuration> </plugin> <plugin> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-jar-plugin </artifactId> <version> 3.3.0 </version> <configuration> <archive> <manifestEntries> <SCM-Branch> ${scmBranch} </SCM-Branch> <SCM-Revision> ${commitHash} </SCM-Revision> <SCM-Build-Time> ${buildTimestamp} </SCM-Build-Time> </manifestEntries> </archive> <excludes> <exclude> **/.*.sw* </exclude> <exclude> **/.sw* </exclude> <exclude> **/*~ </exclude> </excludes> </configuration> </plugin> <plugin> <groupId> org.codehaus.mojo </groupId> <artifactId> buildnumber-maven-plugin </artifactId> <version> 3.2.0 </version> <executions> <execution> <id> create-commitHash </id> <phase> generate-sources </phase> <goals> <goal> create </goal> </goals> <configuration> <doCheck> false </doCheck> <doUpdate> false </doUpdate> <shortRevisionLength> 40 </shortRevisionLength> <getRevisionOnlyOnce> true </getRevisionOnlyOnce> <revisionOnScmFailure> unknown </revisionOnScmFailure> <buildNumberPropertyName> commitHash </buildNumberPropertyName> </configuration> </execution> <execution> <id> create-buildTimestamp </id> <phase> generate-sources </phase> <goals> <goal> create-timestamp </goal> </goals> <configuration> <timestampPropertyName> buildTimestamp </timestampPropertyName> <timestampFormat> yyyy-MM-dd 'T' HH:mm:ssZZ </timestampFormat> <timezone> UTC </timezone> </configuration> </execution> </executions> </plugin> <plugin> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-deploy-plugin </artifactId> <version> 3.1.1 </version> </plugin> <plugin> <groupId> org.codehaus.mojo </groupId> <artifactId> flatten-maven-plugin </artifactId> <version> 1.5.0 </version> <configuration> <updatePomFile> true </updatePomFile> <flattenMode> resolveCiFriendliesOnly </flattenMode> </configuration> <executions> <execution> <id> flatten.process-resources </id> <phase> process-resources </phase> <goals> <goal> flatten </goal> </goals> </execution> <execution> <id> flatten.clean </id> <phase> clean </phase> <goals> <goal> clean </goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> The withMaven block is within the mvn() function. When the block is active, and I add "-X" to the maven command, I get a curious behavior in the logs: [INFO] --- maven-deploy-plugin:2.7:deploy ( default -deploy) @ neo4j-demo --- [DEBUG] Using mirror maven- default -http-blocker (http: //0.0.0.0/) for apache.snapshots (http://people.apache.org/maven-snapshot-repository). [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=66731, ConflictMarker.markTime=36574, ConflictMarker.nodeCount=32, ConflictIdSorter.graphTime=39818, ConflictIdSorter.topsortTime=20662, ConflictIdSorter.conflictIdCount=14, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=467839, ConflictResolver.conflictItemCount=32, DefaultDependencyCollector.collectTime=6369188, DefaultDependencyCollector.transformTime=662310} [DEBUG] org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile [DEBUG] org.codehaus.plexus:plexus-container- default :jar:1.0-alpha-9-stable-1:compile [DEBUG] junit:junit:jar:3.8.1:compile [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:compile [DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7 [DEBUG] Included: org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 [DEBUG] Included: junit:junit:jar:3.8.1 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.5.6 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@5cb0d902] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy' with basic configurator --> [DEBUG] (f) artifact = com.group.id:neo4j-demo:pom:2023.01.02-SNAPSHOT [DEBUG] (f) attachedArtifacts = [com.group.id:neo4j-demo:zip:2023.01.02-SNAPSHOT] [DEBUG] (s) localRepository = id: local url: file: ///cache/mvn/ layout: default snapshots: [enabled => true , update => always] releases: [enabled => true , update => always] blocked: false [DEBUG] (f) offline = false [DEBUG] (f) packaging = pom [DEBUG] (f) pomFile = /home/jenkins/workspace/itlab_arkcase_neo4j-demo_develop/.flattened-pom.xml [DEBUG] (f) project = MavenProject: com.group.id:neo4j-demo:2023.01.02-SNAPSHOT @ /home/jenkins/workspace/itlab_arkcase_neo4j-demo_develop/.flattened-pom.xml [DEBUG] (f) retryFailedDeploymentCount = 5 [DEBUG] (f) skip = false [DEBUG] (f) updateReleaseInfo = false [DEBUG] -- end configuration -- [DEBUG] Using transporter WagonTransporter with priority -1.0 for https: //nexus.server.com/nexus/content/repositories/repo.snapshot/ [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https: //nexus.server.com/nexus/content/repositories/repo.snapshot/ with username=svc.10.1.jenkins, password=*** [DEBUG] Writing tracking file /cache/mvn/com.group.id/neo4j-demo/2023.01.02-SNAPSHOT/resolver-status.properties [DEBUG] Writing tracking file /cache/mvn/com.group.id/neo4j-demo/resolver-status.properties 13:08:35 [DEBUG] Using transporter WagonTransporter with priority -1.0 for https: //nexus.server.com/nexus/content/repositories/repo.snapshot/ 13:08:35 [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https: //nexus.server.com/nexus/content/repositories/repo.snapshot/ with username=svc.10.1.jenkins, password=*** 13:08:35 [DEBUG] Writing tracking file /cache/mvn/com.group.id/neo4j-demo/2023.01.02-SNAPSHOT/resolver-status.properties 13:08:35 [INFO] ------------------------------------------------------------------------ 13:08:35 [INFO] BUILD SUCCESS 13:08:35 [INFO] ------------------------------------------------------------------------ Note that after "Writing tracking file" it automatically ends the deployment attempt. If I remove the withMaven {} block, it executes the deployment afterwards. In particular, I found this blog post which describes a possible situation in play re: Maven classloaders. I did try removing the deployAfter and retryFailedDeploymentCount parameters as well, but that also had no effect. As mentioned above, I used both the 2.7 and 3.1.1 versions of the deploy plugin and both had the same behavior.
          Diego made changes -
          Environment New: Jenkins: 2.426.1
          OS: Linux - 4.18.0-372.19.1.el8_6.x86_64
          Java: 17.0.9 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
          ---
          active-directory:2.34
          ansible:285.v2f044b_eb_7a_3e
          ansible-tower:0.16.0
          ansicolor:1.0.4
          ant:497.v94e7d9fffa_b_9
          antisamy-markup-formatter:162.v0e6ec0fcfcf6
          apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
          apache-httpcomponents-client-5-api:5.2.3-1.0
          authentication-tokens:1.53.v1c90fd9191a_b_
          aws-credentials:218.v1b_e9466ec5da_
          aws-global-configuration:128.ve2c5685a_09c3
          aws-java-sdk-ec2:1.12.586-413.v6a_6c3a_420126
          aws-java-sdk-minimal:1.12.586-413.v6a_6c3a_420126
          blueocean:1.27.9
          blueocean-bitbucket-pipeline:1.27.9
          blueocean-commons:1.27.9
          blueocean-config:1.27.9
          blueocean-core-js:1.27.9
          blueocean-dashboard:1.27.9
          blueocean-display-url:2.4.2
          blueocean-events:1.27.9
          blueocean-git-pipeline:1.27.9
          blueocean-github-pipeline:1.27.9
          blueocean-i18n:1.27.9
          blueocean-jwt:1.27.9
          blueocean-personalization:1.27.9
          blueocean-pipeline-api-impl:1.27.9
          blueocean-pipeline-editor:1.27.9
          blueocean-pipeline-scm-api:1.27.9
          blueocean-rest:1.27.9
          blueocean-rest-impl:1.27.9
          blueocean-web:1.27.9
          bootstrap5-api:5.3.2-2
          bouncycastle-api:2.29
          branch-api:2.1135.v8de8e7899051
          build-everything-strategy:1.0-SNAPSHOT (private-2e232de0-diego)
          build-timeout:1.31
          caffeine-api:3.1.8-133.v17b_1ff2e0599
          checks-api:2.0.2
          cloud-stats:320.v96b_65297a_4b_b_
          cloudbees-bitbucket-branch-source:856.v04c46c86f911
          cloudbees-folder:6.858.v898218f3609d
          code-coverage-api:4.99.0
          command-launcher:107.v773860566e2e
          commons-lang3-api:3.13.0-62.v7d18e55f51e2
          commons-text-api:1.11.0-94.v3e1f4a_926e49
          config-file-provider:959.vcff671a_4518b_
          configuration-as-code:1746.vf1673cfe690a
          configuration-as-code-groovy:1.1
          coordinator:1.5.0
          copyartifact:722.v0662a_9b_e22a_c
          coverage:1.6.0
          credentials:1309.v8835d63eb_d8a_
          credentials-binding:642.v737c34dea_6c2
          custom-folder-icon:2.10
          data-tables-api:1.13.8-1
          depbuilder:1.1.0
          display-url-api:2.200.vb_9327d658781
          docker-commons:439.va_3cb_0a_6a_fb_29
          docker-java-api:3.3.4-86.v39b_a_5ede342c
          docker-plugin:1.5
          docker-workflow:572.v950f58993843
          durable-task:523.va_a_22cf15d5e0
          echarts-api:5.4.3-1
          email-ext:2.102
          envinject:2.908.v66a_774b_31d93
          envinject-api:1.199.v3ce31253ed13
          extensible-choice-parameter:1.8.1
          favorite:2.4.3
          file-operations:177.vd1773063d935
          file-parameters:316.va_83a_1221db_a_7
          folder-properties:1.2.1
          font-awesome-api:6.4.2-1
          forensics-api:2.3.0
          generic-webhook-trigger:1.88.2
          git:5.2.1
          git-client:4.6.0
          github:1.37.3.1
          github-api:1.318-461.v7a_c09c9fa_d63
          github-branch-source:1752.vc201a_0235d80
          github-checks:554.vb_ee03a_000f65
          github-pullrequest:0.5.0
          gitlab-api:5.3.0-91.v1f9a_fda_d654f
          gitlab-branch-source:684.vea_fa_7c1e2fe3
          gitlab-plugin:1.7.16
          gradle:2.9
          h2-api:11.1.4.199-12.v9f4244395f7a_
          handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953
          hidden-parameter:202.vb_964799875d7
          htmlpublisher:1.32
          instance-identity:185.v303dc7c645f9
          ionicons-api:56.v1b_1c8c49374e
          jackson2-api:2.15.3-372.v309620682326
          jacoco:3.3.5
          jakarta-activation-api:2.0.1-3
          jakarta-mail-api:2.0.1-3
          javadoc:243.vb_b_503b_b_45537
          javax-activation-api:1.2.0-6
          javax-mail-api:1.6.2-9
          jaxb:2.3.9-1
          jdk-tool:73.vddf737284550
          jenkins-design-language:1.27.9
          jersey2-api:2.41-133.va_03323b_a_1396
          jjwt-api:0.11.5-77.v646c772fddb_0
          job-fan-in:1.1.4
          jquery3-api:3.7.1-1
          jsch:0.2.8-65.v052c39de79b_2
          junit:1240.vf9529b_881428
          kubernetes:4147.va_d406fb_66172
          kubernetes-client-api:6.8.1-224.vd388fca_4db_3b_
          kubernetes-credentials:0.11
          ldap:711.vb_d1a_491714dc
          mailer:463.vedf8358e006b_
          matrix-auth:3.2.1
          matrix-project:818.v7eb_e657db_924
          maven-artifact-choicelistprovider:1.17
          metrics:4.2.18-442.v02e107157925
          mina-sshd-api-common:2.11.0-86.v836f585d47fa_
          mina-sshd-api-core:2.11.0-86.v836f585d47fa_
          minio:1.3.3-rc93.9e92f846d4cf
          nodejs:1.6.1
          okhttp-api:4.11.0-157.v6852a_a_fa_ec11
          pam-auth:1.10
          parameterized-scheduler:255.v73827fcdf618
          pipeline-build-step:516.v8ee60a_81c5b_9
          pipeline-config-history:1.6
          pipeline-github-lib:42.v0739460cda_c4
          pipeline-graph-analysis:202.va_d268e64deb_3
          pipeline-groovy-lib:689.veec561a_dee13
          pipeline-input-step:477.v339683a_8d55e
          pipeline-maven:1362.vee39a_d4b_02b_1
          pipeline-maven-api:1362.vee39a_d4b_02b_1
          pipeline-milestone-step:111.v449306f708b_7
          pipeline-model-api:2.2151.ve32c9d209a_3f
          pipeline-model-definition:2.2151.ve32c9d209a_3f
          pipeline-model-extensions:2.2151.ve32c9d209a_3f
          pipeline-rest-api:2.34
          pipeline-stage-step:305.ve96d0205c1c6
          pipeline-stage-tags-metadata:2.2151.ve32c9d209a_3f
          pipeline-stage-view:2.34
          pipeline-utility-steps:2.16.0
          plain-credentials:143.v1b_df8b_d3b_e48
          plugin-util-api:3.6.0
          prism-api:1.29.0-9
          pubsub-light:1.18
          purge-job-history:1.6
          remote-file:1.24
          resource-disposer:0.23
          role-strategy:689.v731678c3e0eb_
          scm-api:683.vb_16722fb_b_80b_
          script-security:1294.v99333c047434
          snakeyaml-api:2.2-111.vc6598e30cc65
          sonar:2.16.1
          splunk-devops:1.10.1
          splunk-devops-extend:1.10.1
          sse-gateway:1.26
          ssh-credentials:308.ve4497b_ccd8f4
          ssh-slaves:2.916.vd17b_43357ce4
          ssh-steps:2.0.68.va_d21a_12a_6476
          sshd:3.312.v1c601b_c83b_0e
          structs:325.vcb_307d2a_2782
          text-file-operations:1.3.2
          timestamper:1.26
          token-macro:384.vf35b_f26814ec
          trilead-api:2.84.v72119de229b_7
          uno-choice:2.8.1
          variant:60.v7290fc0eb_b_cd
          veracode-scan:23.7.22.0
          workflow-aggregator:596.v8c21c963d92d
          workflow-api:1283.v99c10937efcb_
          workflow-basic-steps:1042.ve7b_140c4a_e0c
          workflow-cps:3812.vc3031a_b_a_c955
          workflow-durable-task-step:1289.v4d3e7b_01546b_
          workflow-job:1360.vc6700e3136f5
          workflow-multibranch:756.v891d88f2cd46
          workflow-scm-step:415.v434365564324
          workflow-step-api:639.v6eca_cd8c04a_a_
          workflow-support:865.v43e78cc44e0d
          ws-cleanup:0.45

            Unassigned Unassigned
            drivera Diego
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: