Jenkins构建说成功,但没有看到输出

时间:2017-02-21 13:50:01

标签: shell jenkins

我的Jenkins构建作业表明成功,但我执行的脚本似乎都没有做任何事情。我把一个简单的" pwd"命令回显当前工作目录但没有任何反应。 Jenkins的所有报告都是"运行shell脚本"然后什么也看不到。

Jenkins日志片段:

First time build. Skipping changelog.
[Pipeline] sh
[an_example_test3-26UQSYQ445FSBP4QRKEWLPQCJH545MLQVD6B552CIGPOXLZO4G5A] Running shell script
[Pipeline] sh
[an_example_test3-26UQSYQ445FSBP4QRKEWLPQCJH545MLQVD6B552CIGPOXLZO4G5A] Running shell script
[Pipeline] sh
[an_example_test3-26UQSYQ445FSBP4QRKEWLPQCJH545MLQVD6B552CIGPOXLZO4G5A] Running shell script
[Pipeline] sh
[an_example_test3-26UQSYQ445FSBP4QRKEWLPQCJH545MLQVD6B552CIGPOXLZO4G5A] Running shell script
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

用于定义构建的Jenkinsfile:

node {
stage 'build'
sh "echo  ${env.BRANCH_NAME}"
git url: 'git@hd1:testing', branch: "${env.BRANCH_NAME}"
sh "ls -rtl"
sh "pwd"
sh "csh  ${workspace}/simple.csh"
sh "csh  ${workspace}/source.csh"
}

0 个答案:

没有答案