Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to deploy to libs-snapshot bitbucket CI

Tanmay Ghosh
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!
September 14, 2018

Hi,

I am new to bitbucket CI and trying to build a pipeline to push to artifactory. My project is a maven based spring boot project. As per my understanding, the way I am trying to build the pipeline is as below :

Developer Commit to the forked branch -> CI is triggered from branch -> Build is pushed to artifactory in "Libs-Snapshot"

Developer raises the pull request, once the branch is merged -> CI will be triggered from Master -> Run the automated testcases (cucumber) -> Build deployed to "Libs-release"

 

Currently, whenever I am deploying from the branch, its directly pushing to "Libs-Release" instead of "Libs-Snapshot".

My pipeline is similar to the following :

https://bitbucket.org/JfrogDev/pipeline-maven-artifactory/src/master/

 

Kindly advise.

1 answer

0 votes
Rajath Veeramanchala September 15, 2018

Make sure to configure the correct snapshotRepo and releaseRepo in your configuration.yml. Also builds will be deployed to Libs-Snapshot usually if the version in your pom.xml is something like 

<version>X.XX-SNAPSHOT</version>

 If the version is as mentioned below , they`ll always be deployed to the Libs-release

<version>X.XX</version>

 Hope this helps.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events