Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,783
Community Members
 
Community Events
168
Community Groups

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 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

301 views 0 7
Read article

Atlassian Community Events