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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.