test jenkinsfile update for windows 3
This commit is contained in:
@ -136,6 +136,12 @@ inventory_content+=" vars:
|
|||||||
# Write the inventory content to the file
|
# Write the inventory content to the file
|
||||||
echo "$inventory_content" > $inventory_file
|
echo "$inventory_content" > $inventory_file
|
||||||
|
|
||||||
|
# secure inventory file
|
||||||
|
if ! $be_quiet; then
|
||||||
|
echo "Securing inventory file"
|
||||||
|
fi
|
||||||
|
chmod 700 $inventory_file
|
||||||
|
|
||||||
# echo inventory
|
# echo inventory
|
||||||
if ! $be_quiet; then
|
if ! $be_quiet; then
|
||||||
echo "Inventory file created at $inventory_file with the following content:"
|
echo "Inventory file created at $inventory_file with the following content:"
|
||||||
|
|||||||
@ -34,8 +34,7 @@ pipeline {
|
|||||||
jenkins_user=\$(echo ${env.BUILD_USER})
|
jenkins_user=\$(echo ${env.BUILD_USER})
|
||||||
cd /var/jenkins_home/ansible-windows
|
cd /var/jenkins_home/ansible-windows
|
||||||
chmod +x /var/jenkins_home/ansible-windows/inventory/inventory.sh
|
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 \
|
/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}
|
||||||
-w ${env.ansible_service_windows_USR} -p ${env.ansible_service_windows_PSW} -i ${params.host_ip}
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user