瀏覽代碼

edit pipeline file

root 5 年之前
父節點
當前提交
c1c341e3ab
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      env/test.jenkins

+ 3 - 3
env/test.jenkins

@@ -12,12 +12,12 @@ pipeline {
     stages {
         stage('get time & uptime'){
             steps {
-                echo "uptime" > /tmp/uptime
-                echo "date" >> /tmp/uptime
+               sh 'echo uptime > /tmp/uptime'
+               sh 'echo date >> /tmp/uptime'
 	    }
         stage('get pwd')
             steps {
-                echo pwd >> /tmp/uptime
+               sh 'echo pwd >> /tmp/uptime'
             }
         }
     }