jenkins

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!'
    }
}
}

 

posted @ 2022-07-14 10:02    阅读(13)  评论(0编辑  收藏  举报