maven - Promoted build plugin deploy artifacts to repository -
maven - Promoted build plugin deploy artifacts to repository -
we have jenkins maven build running on windows slave runs maven bundle on every commit. i'm trying utilize promoted build plugin deploy promoted builds nexus release repository.
i've set "promote build when..." manual approval , action "deploy artifact maven repository" set repository url "http://example.com:8081/nexus/content/repositories/releases/" , repo id "release". when approval triggered next stack trace:
[info] deployment in http://example.com:8081/nexus/content/repositories/releases/ (id=release,uniqueversion=true) deploying main artifact artifactid-1.0.2.pom uploading: http://example.com:8081/nexus/content/repositories/releases/groupid/artifactid/1.0.2/artifactid-1.0.2.pom error: failed deploy artifacts: not transfer artifact groupid:artifactid:pom:1.0.2 from/to release (http://example.com:8081/nexus/content/repositories/releases/): failed transfer file: http://example.com:8081/nexus/content/repositories/releases/groupid/artifactid/1.0.2/artifactid-1.0.2.pom. homecoming code is: 401, reasonphrase: unauthorized. org.apache.maven.artifact.deployer.artifactdeploymentexception: failed deploy artifacts: not transfer artifact groupid:artifactid:pom:1.0.2 from/to release (http://example.com:8081/nexus/content/repositories/releases/): failed transfer file: http://example.com:8081/nexus/content/repositories/releases/groupid/artifactid/1.0.2/artifactid-1.0.2.pom. homecoming code is: 401, reasonphrase: unauthorized. @ org.apache.maven.artifact.deployer.defaultartifactdeployer.deploy(defaultartifactdeployer.java:143) @ hudson.maven.reporters.mavenartifactrecord.deploy(mavenartifactrecord.java:193) @ hudson.maven.redeploypublisher.perform(redeploypublisher.java:176) @ hudson.plugins.promoted_builds.promotion$runnerimpl.build(promotion.java:282) @ hudson.plugins.promoted_builds.promotion$runnerimpl.dorun(promotion.java:224) @ hudson.model.abstractbuild$abstractbuildexecution.run(abstractbuild.java:533) @ hudson.model.run.execute(run.java:1740) @ hudson.model.run.run(run.java:1678) @ hudson.plugins.promoted_builds.promotion.run(promotion.java:174) @ hudson.model.resourcecontroller.execute(resourcecontroller.java:89) @ hudson.model.executor.run(executor.java:240)
if alter promotion action trigger maven deploy build re-run , deploy target works expected, if add together git publisher fails on authentication. both operations succeed if carried out locally user running jenkins.
how promoted builds plugin determine authentication details deploy?
maven jenkins jenkins-plugins promoted-builds
Comments
Post a Comment