https://builtonpower.com/ibm-aix-ibm-i-and-linux-on-power-logos/ Created by Alice Design from the Noun Project Commit Webhook SSH WinRM SSH PROD (Linux Managed node) (Windows Managed node) (AIX Managed node) (Control node) playbook.yml Inventory Get secret
run on any available agent stages { stage('Build') { steps { echo 'Building the application...' // Run shell commands (sh) for Linux/macOS or batch commands (bat) for Windows sh 'make build' } } stage('Test') { steps { echo 'Running tests...' sh 'make test' // You can add steps to publish test results } } stage('Deploy') { steps { echo 'Deploying the application...' sh 'make publish' } } } } Jenkins Pipeline script (Jenkins fi le) pipeline.jenkins fi le Created by Eugene Belyakov from the Noun Project Created by Eugene Belyakov from the Noun Project Created by Eugene Belyakov from the Noun Project
a command and register the output hosts: windows_hosts gather_facts: false tasks: - name: Run a PowerShell command ansible.windows.win_shell: C:\somescript.ps1 args: output_encoding_override: big5 register: shell_result # The output will be stored in a variable named 'shell_result' - name: Display the standard output ansible.builtin.debug: var: shell_result.stdout playbook.yml Powershell
a command and register the output hosts: windows_hosts gather_facts: false tasks: - name: Run a command in cmd ansible.windows.win_command: C:\someprog.exe args: output_encoding_override: big5 register: shell_result # The output will be stored in a variable named 'shell_result' - name: Display the standard output ansible.builtin.debug: var: shell_result.stdout playbook.yml 命令提 示 字元 (cmd)