pipeline { agent any stages { stage('Example') { steps { echo 'Hello World' } } } post { always { echo 'I will always say Hello again!' } } }
pipeline { agent any stages { stage('Example') { steps { git credentialsId: '7cdf7d7e-57c0-4623-833d-245c4703db56', url: 'https://gitee.com/wusen0601/javademo5.git' echo "Hello World ${branch}" sh '''ant cp -r /youxi/conf .''' } } } post { always { echo 'I will always say Hello again!' } } }