pipeline { agent any tools { maven 'Default' jdk 'java-11-openjdk-amd64' } stages { stage('Initialize') { steps { sh ''' echo "PATH = ${PATH}" echo "M2_HOME = ${M2_HOME}" ''' } } stage('Build') { steps { echo 'Building...' sh ''' cd BackEnd mvn clean install -Dmaven.test.skip=true sh ''' } } stage('Test') { steps { echo 'Testing...' } } stage('Deploy') { steps { echo 'Deploying...' } } stage('Front-end') { agent { docker { image 'timbru31/node-alpine-git' } } steps { echo 'Building FrontEnd...' sh ''' git clone https://git.wmi.amu.edu.pl/s416178/Punktonerzy.git cd Punktonerzy git pull cd FrontEnd npm install ng build --prod ''' } } } }