1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
node { stage('Build') { echo 'Building....' def username = 'Jenkins' echo 'Hello Mr. ${username}' echo "I said, Hello Mr. ${username}" checkout([$class: 'GitSCM', branches: [[name: '*/master'], [name: '*/testbr']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://gitee.com/roclli/simple-maven-project-with-tests.git']]]) sh "mvn -B -Dmaven.test.failure.ignore verify" } stage('Test') { echo 'Testing....' } stage('Deploy') { echo 'Deploying....' } }
|
近期评论