From d91d971efa2141486c861788339216681f5fb491 Mon Sep 17 00:00:00 2001 From: senatorovv <61406888+senatorovv@users.noreply.github.com> Date: Wed, 12 Jul 2023 12:11:31 +0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 70b14661d..2cf015f5f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,14 @@ +#!groovy + pipeline { agent none stages { stage('Maven Install') { - agent any - steps { + agent { + docker { + image 'maven:3.5.0' + } + } + steps { sh 'mvn clean install' } }