I followed the instruction to deploy:
https://confluence.atlassian.com/bitbucket/deploy-build-artifacts-to-bitbucket-downloads-872124574.html?_ga=2.7157746.1530744774.1520804169-526659715.1520804169
Everything works fine. However, in the Download section of my repository, I can't see the ".war" file. It's a zip file that contains the whole project without the war file, which is just a copy of my original maven project structure. I thought it's a deployment of the jar or war file. My pipeline configuration is below:
image: maven:3.5.3-jdk-8pipelines: default: - step: caches: - mavenscript: # Modify the commands below to build your repository. - mvn -B clean install # -B batch mode makes Maven less verbose - curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${lingv}/${namingstory}/downloads" --form files=@target/namingstory.war
Hi @Martin Min,
that looks fine on first sight. Could you make sure that 'target/namingstory.war' exists in your build (e.g. by executing 'ls target' before the upload command)?
It looks like you're new here. Sign in or register to get started.