Executing powershell command directly in jenkins pipeline

后端 未结 4 1816
闹比i
闹比i 2020-12-05 03:15

Is it possible to call a PowerShell command directly in the pipelines groovy script? While using custom jobs in Jenkins I am able to call the command with the PowerShell Plu

4条回答
  •  攒了一身酷
    2020-12-05 04:11

    You can use the sh command like this:

    sh """
        echo 'foo'
        # bar
        echo 'hello'
    """
    

    Comments are supported in here.

提交回复
热议问题