Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Transfer JAR between pipeline steps

veselinnguyen April 13, 2020

Hi fellows! Please help with the error below?

I have a problem that my second step with Docker is not able to find the JAR produced in the first step. In my docker file I have:


Inside my Dockerfile:

COPY TEST.jar /inside/docker/dir/TEST.jar


Step 14/19: COPY TEST*.jar /inside/docker/dir/TEST.jar


ERROR: COPY failed: no source files were specified


My Configuration:

image: openjdk:11
pipelines:
default:
- step:
name: Build jar
caches:
- gradle
script:
- bash ./gradlew build
artifacts:
- "*.jar" //Here I have tried with: target/** , build/lib/**, **.jar -> Neither of them worked!!!
branches:
master:
- step:
name: Build and publish docker image
script:
- docker login --username $DOCKER_USER --password $DOCKER_PASSWORD
- docker build -t ***/test:latest .
- docker push ***/test:latest
options:
docker: true

 

1 answer

0 votes
Andreas Sotirakopoulos August 6, 2020

did you find a solution to this after all?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events