Hello team,
I have been trying to run a build and have artifacts created. My pipelines creating the artifact as expected but artifacts are always empty. I have tried all the options from the community but still no luck.
Here are the things I have tried.
1. artifacts: # defining the artifacts to be passed to each future step.
- build/xxx/target/*.jar
2. artifacts: # defining the artifacts to be passed to each future step.
- opt/atlassian/pipelines/agent/build/xxx/target/*.jar
3. artifacts: # defining the artifacts to be passed to each future step.
- "opt/atlassian/pipelines/agent/build/xxx/target/*.jar"
4. artifacts: # defining the artifacts to be passed to each future step.
- "$BITBUCKET_CLONE_DIR/xxx/target/xxx*.jar"
etc and many more.
Here is the complete step
- step:
name: XXXX
image:
name: YYYY
username: $xxx
password: $yyy
caches:
- maven
script:
- mvn clean install --file $BITBUCKET_CLONE_DIR/xxxx/pom.xml
- ls -ltr $BITBUCKET_CLONE_DIR/xxxx/target
artifacts: # defining the artifacts to be passed to each future step.
- build/xxxx/target/*.jar
Please advise.