Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,328
Community Members
 
Community Events
168
Community Groups

Generate JAR file and send it to AWS S3?

Edited

Is it possible to generate a JAR file from my Java project (from Bitbucket Cloud) and send it to AWS S3?

I managed to generate something and send to S3, but not a JAR file. Here is my pipeline:

pipelines:
default:
- step:
name: Build and Test
caches:
- maven
script:
- mvn -B verify --file pom.xml
- mvn install
artifacts:
- target/**
after-script:
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
- pipe: atlassian/checkstyle-report:0.2.0
- step:
name: Deploy to S3
script:
- pipe: atlassian/aws-s3-deploy:0.4.5
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_REGION
S3_BUCKET: $AWS_S3_BUCKET
LOCAL_PATH: 'target' 

 This is the error message:

✖ target directory doesn't exist.

 I have tried to use the path created while building it:

/opt/atlassian/pipelines/agent/build/target/

The problem will be the same.

1 answer

Hi @Alvaro Cardoso ,

I am also facing same issue. Did you solve this issue?

Unfortunately I never found a solution for it.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events