Auf Gitlab liegt nun der Quellcode, für den der sich das ganze Projekt einfach holen will: git clone [email protected]:IT-Berater/twmavencommandplugin.git

Diese Buildpipeline für Java 8 und 11 wird über das folgende Script gesteuert und läuft im Docker-Container:
#
# Jobs für das Projekt oder auch allgemein
# als Template für Maven Jobs für compile und build
# mit unterschiedlichen Java Versionen
#
# Thomas Wenzlaff http://www.wenzlaff.info
#
#
# Die Jobs der Pipeline
#
stages:
- compile
- build
#
# Macht ein Maven clean compile Java 8
#
Java-9 compile Job:
stage: compile
image: maven:3-jdk-8
script:
- mvn clean compile -B
#
# Macht ein install mit deploy ins lokale Repo
#
Install Java 11 :
stage: build
image: aiwin/maven3-base
script:
- mvn clean install -B
artifacts:
paths:
- target/*.jar
Ähnliche Artikel:
- Build Pipeline mit YAML Script zum erzeugen eines *.deb Archives mit Maven und jdeb für Debian auf Raspberry Pi mit GitLab
- Raspberry Pi FreeMarker Java and Maven Project goes to 去 يذهب إلى GibLab and not to GitHub
- Wie kann von einem Raspberry Pi eine Buildpipeline eines GitLab Projekt automatisch antriggert werden?
