test jenkinsfile update for windows 3

This commit is contained in:
2025-10-25 23:42:05 -07:00
parent ab727f4afe
commit b86b45fd63
2 changed files with 7 additions and 2 deletions

View File

@ -136,6 +136,12 @@ inventory_content+=" vars:
# Write the inventory content to the file
echo "$inventory_content" > $inventory_file
# secure inventory file
if ! $be_quiet; then
echo "Securing inventory file"
fi
chmod 700 $inventory_file
# echo inventory
if ! $be_quiet; then
echo "Inventory file created at $inventory_file with the following content:"

View File

@ -34,8 +34,7 @@ pipeline {
jenkins_user=\$(echo ${env.BUILD_USER})
cd /var/jenkins_home/ansible-windows
chmod +x /var/jenkins_home/ansible-windows/inventory/inventory.sh
/var/jenkins_home/ansible-windows/inventory/inventory.sh -v -s -a \$jenkins_subnet_group -g \$jenkins_group -u \$jenkins_user \
-w ${env.ansible_service_windows_USR} -p ${env.ansible_service_windows_PSW} -i ${params.host_ip}
/var/jenkins_home/ansible-windows/inventory/inventory.sh -v -s -a \$jenkins_subnet_group -g \$jenkins_group -u \$jenkins_user -w ${env.ansible_service_windows_USR} -p ${env.ansible_service_windows_PSW} -i ${params.host_ip}
"""
}