Getting 409 Conflict for CD GHA

258 views
Skip to first unread message

jsupun

unread,
Nov 16, 2021, 1:35:09 AM11/16/21
to Jenkins Developers
Getting closer. When running the cd.yaml I'm getting an error for the release step.

[WARNING] The requested profile "consume-incrementals" could not be activated because it does not exist.
177[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project keeper-secrets-manager: Failed to deploy artifacts: Could not transfer artifact io.jenkins.plugins:keeper-secrets-manager:hpi:1.0-999999-20211116.032450-1 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): transfer failed for https://repo.jenkins-ci.org/releases/io/jenkins/plugins/keeper-secrets-manager/1.0-999999-SNAPSHOT/keeper-secrets-manager-1.0-999999-20211116.032450-1.hpi, status: 409 Conflict -> [Help 1]

I'm not sure what "release handling policy" I'm violating. If I had to guess it would be the version number. I would assume at some point the 999999 would be replace by something, but not sure where. Or I've not setup up something with Artifactory?


Thanks,
John

Gavin Mogan

unread,
Nov 16, 2021, 1:44:28 AM11/16/21
to Jenkins Developers

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/40753f0d-cb96-49eb-a523-6847a1990df5n%40googlegroups.com.

James Nord

unread,
Nov 16, 2021, 4:03:35 AM11/16/21
to Jenkins Developers

Your project also contains SNAPSHOT dependencies so that should not be deployed as a release either.
It should fail the build (not sure if it actually does right now though, but if not you should expect it to in the future.


U related you are also pulling in newer versions of guava and guice for testing than Jenkins provides, this is potentially problematic https://github.com/jenkinsci/jep/blob/master/jep/233/README.adoc

Daniel Beck

unread,
Nov 16, 2021, 6:11:25 AM11/16/21
to jenkin...@googlegroups.com
CD only works for plugins that are incrementalified. Yours is not (properly). See https://github.com/jenkinsci/incrementals-tools/ about git-changelist-maven-extension.

John Walstra

unread,
Nov 16, 2021, 3:53:55 PM11/16/21
to Jenkins Developers
So my .gitignore had .mvn in it, which prevented that directory from originally being committed. I had manually added it, and the maven.config, but didn't add the extensions.xml. I've added the XML file now and get a different error.

[DEBUG] Verifying availability of /Users/XXX/.m2/repository/org/jenkins-ci/tools/maven-hpi-plugin/3.18/maven-hpi-plugin-3.18.pom from [incrementals (https://repo.jenkins-ci.org/incrementals/, default, releases), central (https://repo.maven.apache.org/maven2, default, releases)]
[WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:3.18 is missing, no dependency information available
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=19911, ConflictMarker.markTime=12602, ConflictMarker.nodeCount=1, ConflictIdSorter.graphTime=5158, ConflictIdSorter.topsortTime=7083, ConflictIdSorter.conflictIdCount=1, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=40914, ConflictResolver.conflictItemCount=1, DefaultDependencyCollector.collectTime=6122550, DefaultDependencyCollector.transformTime=128355}
[DEBUG] org.jenkins-ci.tools:maven-hpi-plugin:jar:3.18
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:1.1:runtime
[DEBUG] Verifying availability of /Users/XXX/.m2/repository/org/jenkins-ci/tools/maven-hpi-plugin/3.18/maven-hpi-plugin-3.18.jar from [incrementals (https://repo.jenkins-ci.org/incrementals/, default, releases), central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[maven.ext, parent: ClassRealm[plexus.core, parent: null]]
[WARNING] Failed to build parent project for io.jenkins.plugins:keeper-secrets-manager:hpi:1.0
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.jenkins-ci.tools:maven-hpi-plugin:3.18 or one of its dependencies could not be resolved: org.jenkins-ci.tools:maven-hpi-plugin:jar:3.18 was not found in https://repo.jenkins-ci.org/incrementals/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of incrementals has elapsed or updates are forced @

    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:207)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:342)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:299)
    at org.apache.maven.project.DefaultProjectBuilder.initParent (DefaultProjectBuilder.java:960)
    at org.apache.maven.project.DefaultProjectBuilder.initProject (DefaultProjectBuilder.java:680)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:623)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:387)
    at org.apache.maven.graph.DefaultGraphBuilder.collectProjects (DefaultGraphBuilder.java:414)
    at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:405)
    at org.apache.maven.graph.DefaultGraphBuilder.build (DefaultGraphBuilder.java:82)
    at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:507)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:219)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for org.jenkins-ci.plugins:plugin:4.28
[ERROR] Unresolveable build extension: Plugin org.jenkins-ci.tools:maven-hpi-plugin:3.18 or one of its dependencies could not be resolved: org.jenkins-ci.tools:maven-hpi-plugin:jar:3.18 was not found in https://repo.jenkins-ci.org/incrementals/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of incrementals has elapsed or updates are forced @
...
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.403 s
[INFO] Finished at: 2021-11-16T14:29:27-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.jenkins.tools.incrementals:incrementals-maven-plugin:1.2:incrementalify (default-cli) on project keeper-secrets-manager: Editing an existing /Users/XXX/src/keeper-secrets-manager-plugin/.mvn/extensions.xml is not yet supported -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.jenkins.tools.incrementals:incrementals-maven-plugin:1.2:incrementalify (default-cli) on project keeper-secrets-manager: Editing an existing /Users/XXX/src/keeper-secrets-manager-plugin/.mvn/extensions.xml is not yet supported
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoFailureException: Editing an existing /Users/XXX/src/keeper-secrets-manager-plugin/.mvn/extensions.xml is not yet supported



Out of curiosity, I used mvn archetype:generate -Dfilter=io.jenkins.archetypes: to generate a fresh project to compare. And when I do a mvn incrementals:incrementalify -X I get the same error.

[WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:3.18 is missing, no dependency information available
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=14935, ConflictMarker.markTime=10614, ConflictMarker.nodeCount=1, ConflictIdSorter.graphTime=2401, ConflictIdSorter.topsortTime=10177, ConflictIdSorter.conflictIdCount=1, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=35424, ConflictResolver.conflictItemCount=1, DefaultDependencyCollector.collectTime=14408962, DefaultDependencyCollector.transformTime=108631}
[DEBUG] org.jenkins-ci.tools:maven-hpi-plugin:jar:3.18
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:1.1:runtime
[DEBUG] Verifying availability of /Users/XXX/.m2/repository/org/jenkins-ci/tools/maven-hpi-plugin/3.18/maven-hpi-plugin-3.18.jar from [incrementals (https://repo.jenkins-ci.org/incrementals/, default, releases), central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[maven.ext, parent: ClassRealm[plexus.core, parent: null]]
[WARNING] Failed to build parent project for io.jenkins.plugins:bacon:hpi:1.0-SNAPSHOT
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.jenkins-ci.tools:maven-hpi-plugin:3.18 or one of its dependencies could not be resolved: org.jenkins-ci.tools:maven-hpi-plugin:jar:3.18 was not found in https://repo.jenkins-ci.org/incrementals/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of incrementals has elapsed or updates are forced @



I've deleted my .m2 directory numerous times to make sure nothing is caching.

John Walstra

unread,
Nov 16, 2021, 4:44:44 PM11/16/21
to Jenkins Developers
However it does work in the build servers. I now have artifacts in JFrog.
Reply all
Reply to author
Forward
0 new messages