Update 'Jenkinsfile'

This commit is contained in:
dany 2022-08-02 16:21:20 +02:00
parent 07c9ce2467
commit 72817223cf

17
Jenkinsfile vendored
View File

@ -7,6 +7,16 @@ remote.allowAnyHosts = true
remote.agent = false
remote.logLevel = 'INFO'
def build(text) {
sh'''
printenv
echo $text
echo $WORKSPACE
ls -al $WORKSPACE
find /var/jenkins_home -name "Jenkinsfile"
'''
}
pipeline{
agent { node{ label'master' }}
options {
@ -30,12 +40,7 @@ pipeline{
stage('Test')
{
steps {
sh '''
printenv
echo $WORKSPACE
ls -al $WORKSPACE
find /var/jenkins_home -name "Jenkinsfile"
'''
build "Hello world"
}
}
stage('Remote SSH') {