Missed Team ’24? Catch up on announcements here.

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

How does bamboo connect to our JFrog artifactory

Gnanasekaran Sakthivel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 8, 2021

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
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2021

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
AUG Leaders

Atlassian Community Events