ci: load Pipeline definition from SCM

This commit is contained in:
codex-test committed 2026-10-12 15:23:10 +00:00
1 parent 7223b117a9
commit 9d5a684806
1 file changed
+5
Vendored
+5
View File
@@ -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 } }
}