Explorar o código

edit .jenkins file

root %!s(int64=5) %!d(string=hai) anos
pai
achega
0f95998497
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      env/test.jenkins

+ 3 - 3
env/test.jenkins

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