inventory fix
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -52,9 +52,9 @@ pipeline {
|
||||
// Build the limit flag
|
||||
def limitValue = ''
|
||||
if (isDockerPlaybook) {
|
||||
// Docker playbooks always target 'docker' tagged hosts
|
||||
// If user provides a limit, use intersection (docker AND limit)
|
||||
limitValue = params.LIMIT ? "docker:&${params.LIMIT}" : 'docker'
|
||||
// Docker playbooks always target 'docker_hosts' group
|
||||
// If user provides a limit, use intersection (docker_hosts AND limit)
|
||||
limitValue = params.LIMIT ? "docker_hosts:&${params.LIMIT}" : 'docker_hosts'
|
||||
} else {
|
||||
limitValue = params.LIMIT ?: ''
|
||||
}
|
||||
@@ -67,7 +67,7 @@ pipeline {
|
||||
echo "Check flag: '${checkFlag}'"
|
||||
echo "Limit: '${limitValue}'"
|
||||
if (isDockerPlaybook) {
|
||||
echo "Docker playbook detected - targeting hosts with 'docker' tag"
|
||||
echo "Docker playbook detected - targeting 'docker_hosts' group"
|
||||
}
|
||||
|
||||
sh """
|
||||
|
||||
Reference in New Issue
Block a user