Gitlab-ci the next stage will delete the file generated by the previous stage

gitlab-ci.yml file:

stages:

- build
- image     

build_package:

stage: build
script:
    - "/root/apache-maven-3.5.4/bin/mvn clean package -Dmaven.test.skip=true"

build_image:

stage: image
script:
    - ls olp_takeout_cloud/target/

the next stage deletes the file generated by the previous stage

the platform version of the problem and what methods you have tried

related codes

/ /

what result do you expect? What is the error message actually seen?

Menu