diff --git a/Jenkinsfile b/Jenkinsfile index 9af6d8b..fd101c0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,9 @@ pipeline { steps { script { echo '开始执行maven阶段' - echo pwd() + def process = new ProcessBuilder("bash", "-c", "echo Hello from Script Console").start() + process.waitFor() + println process.in.text echo 'maven阶段结束' } }