Update 'Jenkinsfile'

This commit is contained in:
dany 2022-08-02 16:29:03 +02:00
parent 70b27f1761
commit a2572b6fe2

9
Jenkinsfile vendored
View File

@ -7,10 +7,10 @@ remote.allowAnyHosts = true
remote.agent = false remote.agent = false
remote.logLevel = 'INFO' remote.logLevel = 'INFO'
def build_test(text) { def build_test() {
sh''' sh'''
printenv printenv
echo "Hello ${text}" echo "Hello $text"
echo $WORKSPACE echo $WORKSPACE
ls -al $WORKSPACE ls -al $WORKSPACE
find /var/jenkins_home -name "Jenkinsfile" find /var/jenkins_home -name "Jenkinsfile"
@ -40,7 +40,10 @@ pipeline{
stage('Test') stage('Test')
{ {
steps { steps {
build_test "every one" script {
env.test = " every one"
}
build_test()
} }
} }
stage('Remote SSH') { stage('Remote SSH') {