big jenkinsifile update

This commit is contained in:
matt committed 2025-10-12 16:48:52 -07:00
1 parent 40a8253229
commit 22b4ef4336
26 files changed
+148 -54

No files matched your search

+3 -2
View File
@@ -21,10 +21,11 @@ pipeline {
steps {
// Generate the dynamic inventory file
sh """
jenkins_group=\$(echo ${env.BUILD_USER_GROUPS} | sed 's/,/\\n/g' | grep Jenkins | head -n 1)
jenkins_user=\$(echo ${env.BUILD_USER})
cd /var/jenkins_home/ansible
chmod +x /var/jenkins_home/ansible/inventory/inventory.sh
/var/jenkins_home/ansible/inventory/inventory.sh ${params.host_ip}
/var/jenkins_home/ansible/inventory/inventory.sh -g \$jenkins_group -u \$jenkins_user -i ${params.host_ip}
"""
}
}