Hi ,
We are trying to build simple maven project pipeline where we are trying to expect below actions to be happen.
Pipeline triggered and the artifacts to be uploaded in the target folder of current bitbucket repository path.
In the below example post pipeline trigger we are able to see results file site/serenity/index.html is generated at location during build but that file we would like to upload as artifacts in the target folder.
Even moving the file or directory not worked
image: radut/openjdk-15-maven
pipelines:
default:
- parallel:
- step:
name: Triggering Test Automation
script:
- mkdir –p $BITBUCKET_CLONE_DIR/target
- mvn clean install -f sps-api-automation/pom.xml -U
- cd /opt/atlassian/pipelines/agent/build/sps-api-automation/target
- cat site/serenity/index.html
- mv /opt/atlassian/pipelines/agent/build/sps-api-automation/target/site/serenity/index.html /opt/atlassian/pipelines/agent/build/sps-api-automation/target
artifacts:
- target/**