Deploying artifact to Artifactory failing

java
circle.yml

#1

Hi everyone,

I am trying to push an artifact from circleci to artifactory but it is not working…the deployment section in the build never gets triggered.
Here is the deployment section of my circle.yml file:

deployment:
develop:
branch: [feature/, develop]
commands:
- mvn -s settings.xml -f pom.xml compile deploy
staging:
branch: release/

commands:
- mvn deploy -s settings.xml
production:
branch: master
commands:
- mvn -s settings.xml -DlocalCheckout=true deploy release:perform

If I only one subsection in the deployment section, then the deployment section within the build is triggered and the artifact is pushed to artifactory…not sure why it’s not working when I am trying to have more than one subsection. Any ideas?


#2