Added the save-artifacts plugin, to access the piplie generated artifacts

This commit is contained in:
root 2025-06-07 00:04:42 +01:00
parent 20e237ba5a
commit debd1fc11e

View file

@ -1,15 +1,24 @@
pipeline: pipeline:
backend-build: backend-build:
image: maven:3.9-eclipse-temurin-17 image: maven:3.9-eclipse-temurin-17
volumes:
- build:/output
commands: commands:
- echo "Building backend + frontend" - echo "Building backend + frontend"
- mvn clean install -Pprod -DskipTests - mvn clean install -Pprod -DskipTests
- cp target/resilient-1.0.2-SNAPSHOT.jar /output/
when: when:
branch: branch:
include: include:
- main - main
- master - master
- develop - develop
save-artifacts:
image: woodpeckerci/plugin-artifacts
settings:
path: /output/resilient-1.0.2-SNAPSHOT.jar
volumes: volumes:
build: build:
host: host: