Browse Source

Обновить 'Jenkins/jenkins'

vmshay 5 years ago
parent
commit
d20565b277
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Jenkins/jenkins

+ 3 - 3
Jenkins/jenkins

@@ -2,7 +2,7 @@
 
 def outfile = "Dockerfile"
 //def status = sh(script:"ls -la dir1 >${outfile} 2>&1", returnStatus:true)
-def output(){ 
+def output_test(){ 
 	script {
 		return sh(script:'pwd', returnStdout:true).trim()
 	}
@@ -23,12 +23,12 @@ def sendMessage(message){
 pipeline {
    agent any
    environment{
-   		PWD = output()
+   		PWD = output_test()
    }
    stages {
       stage('Hello') {
          steps {
-            echo output("${PWD}")
+            echo "${PWD}"
          }
       }
    }