Jenkins powershell插件不会在声明性管道中工作

时间:2018-04-26 21:59:29

标签: powershell jenkins jenkins-plugins jenkins-pipeline jenkins-declarative-pipeline

我试图在声明性管道工作中运行powershell脚本,但它不起作用。它似乎有效,但不要做任何事情。

这是我的管道的一部分

pipeline{
    agent{
        label 'windows'
    }
    stages {
        .
        .
        .
        stage("Preparing"){
            steps{
                powershell "./scripts/SetVersion.ps1 $version"
            }
        }
        .
        .
        .
    }
}

这是管道日志中的输出

Running PowerShell script

但没有任何反应,管道进入下一步。并且肯定我的脚本没有运行。在可编写脚本的管道中,相同的指令运行良好

我尝试了基本的命令,如" ps"它运作良好。

我做错了吗?或者这个插件有错误吗?

一些其他信息

Jenkins版本:2.107.2

Powershell插件版本:1.3

1 个答案:

答案 0 :(得分:0)

误报。这只是破坏我的脚本的另一个工作。 一切都好了。

相关问题