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.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.