pipeline { agent { label 'test20' } stages { stage('build') { steps { sh ''' source /etc/profile mvn clean package -Dmaven.test.skip=true -U ''' } } stage('deploy') { steps { sh ''' source /etc/profile cp -f fifa-api/target/fifa-api-1.1-SNAPSHOT.jar /data/upload/fifa-maker-api/ sh /data/upload/fifa-maker-api/build.sh ''' } } } }