I'm migrating from GitLab CI
to Woodpecker CI
. The current pipeline is defined as:
default:
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- $CI_PROJECT_DIR/.m2/repository/
image: docker.io/library/eclipse-temurin:8-jdk-focal
stages:
- compile
variables:
MAVEN_CONFIG: --batch-mode --no-transfer-progress
MAVEN_OPTS: -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository/
compile:
stage: compile
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_MERGE_REQUEST_ID
script:
- ./mvnw compile $MAVEN_EXTRA_OPTS
variables:
MAVEN_EXTRA_OPTS: -DskipTests=true
I'm trying to find a way to declare MAVEN_CONFIG
and MAVEN_OPTS
in the same way they are exposed (read: globally for all steps) in GitLab CI
, but I so far I haven't found a solution. I'm basically declaring them all over again in subsequent steps.
Is this functionality available and I missed it, or isn't yet implemented?