summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
blob: d9b0710415e981923132af0012676c6e64eff170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!groovy

properties([[$class: 'ParametersDefinitionProperty', parameterDefinitions: [
[$class: 'hudson.model.StringParameterDefinition', name: 'ECO_PIPELINE_ID', defaultValue: '0', description: 'Select an environment'],
[$class: 'hudson.model.StringParameterDefinition', name: 'PHASE', defaultValue: 'BUILD, PACKAGE, SONAR, SAST', description: 'Select an instance'],
[$class: 'hudson.model.StringParameterDefinition', name: 'TARGET_NODE', defaultValue: 'zld03318.vci.att.com', description: 'Select an environment to deploy to']
]]])

def wf = new MavenWorkflow()

wf defaultPhase:'BUILD, SONAR, SAST, DAST',
   language:'MAVEN',
   deployType: 'SWM',
   deployOptions:"swm:install -Dswm.target.node=${params.TARGET_NODE}"