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('Build Artifact') {
			steps {
				sh 'mvn -U -B clean install'
			}
		}
		stage('Deploy Artifact') {
			steps {
				sh 'mvn -U deploy'
			}
		}
	}
}