diff --git a/Jenkinsfile b/Jenkinsfile index 655d6b7..6bff32b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,19 @@ pipeline { agent any + parameters { + choice(name: 'ACTION', + description: 'Execute an operation:\n\tBUILD-Standard build to DEV environment,\n\tRELEASE-Release project from master', + choices: ['BUILD', 'RELEASE']) + } stages { - stage('Hello') { + stage('Build Artifact') { steps { - echo "Hello World" + sh 'mvn -U -B clean install' + } + } + stage('Deploy Artifact') { + steps { + sh 'mvn -U deploy' } } }