Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How does bamboo connect to our JFrog artifactory

Edited

We have several projects. Two of the projects gets deployed (or published) to the artifactory (during the build). I added a new project. All these projects have a common parent, whose pom.xml has artifactory details given in the <distributionManagement> section. My project is having a 401 error while transferring files to the artifactory. I wonder if I must configure some user name password. I do not know how the other projects are able to accomplish this. I am trying to find where the user/password could have been set with respect to the projects that are working. Please note that, for my project, this is the first time, bamboo-maven would be doing the deploy.

build 08-Jan-2021 16:39:08 [INFO] ------------------------------------------------------------------------
build 08-Jan-2021 16:39:08 [INFO] BUILD FAILURE
build 08-Jan-2021 16:39:08 [INFO] ------------------------------------------------------------------------
build 08-Jan-2021 16:39:08 [INFO] Total time: 2.512 s
build 08-Jan-2021 16:39:08 [INFO] Finished at: 2021-01-08T16:39:08-05:00
build 08-Jan-2021 16:39:08 [INFO] ------------------------------------------------------------------------
build 08-Jan-2021 16:39:08 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project my-project: Failed to deploy artifacts: Could not transfer artifact com.autosys:my-project:pom:4.2-20210108.213908-1 from/to vmsys2020 (http://vmsys2020.autosys.com:9080/artifactory/libs-snapshot-local): Failed to transfer file http://vmsys2020.autosys.com:9080/artifactory/libs-snapshot-local/com/autosys/my-project/4.2-SNAPSHOT/my-project-4.2-20210108.213908-1.pom with status code 401 -> [Help 1]
build 08-Jan-2021 16:39:08 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project my-project: Failed to deploy artifacts: Could not transfer artifact com.autosys:my-project:pom:4.2-20210108.213908-1 from/to vmsys2020 (http://vmsys2020.autosys.com:9080/artifactory/libs-snapshot-local): Failed to transfer file http://vmsys2020.autosys.com:9080/artifactory/libs-snapshot-local/com/autosys/my-project/4.2-SNAPSHOT/my-project-4.2-20210108.213908-1.pom with status code 401
build 08-Jan-2021 16:39:08 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
build 08-Jan-2021 16:39:08 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

1 answer

0 votes

Hi @Gnanasekaran Sakthivel ! 

I do recommend you to checkout the next docs:

 

So based on that your deployment plan should have variables or spmewhere config to deploy to company the Artifactory. 

Unfortauntely, it's not platform problem, it's mostly usage of plans and stage with steps 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center is here!

G’day Bamboo customers, The wait is over! Bamboo Data Center edition you have been asking for is finally here! This self-managed enterprise offering of Bamboo has the resilience, reliability, and s...

558 views 1 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you