removed verbosity and old snapshot cleanup variable
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -61,7 +61,6 @@ pipeline {
|
|||||||
|
|
||||||
def limitFlag = limitValue ? "--limit \"${limitValue}\"" : ''
|
def limitFlag = limitValue ? "--limit \"${limitValue}\"" : ''
|
||||||
def checkFlag = (params.DRY_RUN == true) ? '--check --diff' : ''
|
def checkFlag = (params.DRY_RUN == true) ? '--check --diff' : ''
|
||||||
def extraVars = (params.CLEANUP_SNAPSHOTS == true) ? "-e cleanup_old_snapshots=true" : ''
|
|
||||||
|
|
||||||
echo "DRY_RUN parameter: ${params.DRY_RUN}"
|
echo "DRY_RUN parameter: ${params.DRY_RUN}"
|
||||||
echo "Check flag: '${checkFlag}'"
|
echo "Check flag: '${checkFlag}'"
|
||||||
@@ -76,8 +75,7 @@ pipeline {
|
|||||||
playbooks/${params.PLAYBOOK} \
|
playbooks/${params.PLAYBOOK} \
|
||||||
${limitFlag} \
|
${limitFlag} \
|
||||||
${checkFlag} \
|
${checkFlag} \
|
||||||
${extraVars} \
|
${extraVars}
|
||||||
-v
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user