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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.