Hi,
I've tried all combinations, but I could not find a way to upload a maven generated jar file to a remote server using the scp pipeline.
If I use
LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/*'this would copy the whole source folder structure , but without any trace of the target/ folder or any jar.
I tried this (it's a multi module project):
LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/web/target/*'
The build finishes successfully and the logs say uploading artifact to maven repo from:
/opt/atlassian/pipelines/agent/build/web/target/
But then when trying the scp:
/opt/atlassian/pipelines/agent/build/web/target/*.jar: No such file or directory
Thank you