diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..bbb8631 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,5 @@ +node { + stage('SCM Jenkinsfile') { checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'http://service-6acce8de4873e494859dc96e:3000/codex-test/demo-ci-lab.git']], extensions: []]) } + try { stage('构建与测试') { sh 'sh ci/demo-build.sh'; junit 'reports/*.xml' } } + finally { stage('归档') { archiveArtifacts artifacts: 'artifacts/*', allowEmptyArchive: true } } +} \ No newline at end of file