From 896cfdcb3a558a9b972ea31f984135deef36071b Mon Sep 17 00:00:00 2001 From: codex-test Date: Mon, 12 Oct 2026 19:30:37 +0000 Subject: [PATCH 1/3] docs: add PR discovery fixture --- docs/pr-auto.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/pr-auto.md diff --git a/docs/pr-auto.md b/docs/pr-auto.md new file mode 100644 index 0000000..ba83e09 --- /dev/null +++ b/docs/pr-auto.md @@ -0,0 +1,3 @@ +# Pull request fixture + +[DEMO] Independent documentation change for automatic PR discovery. -- 2.54.0 From 1dcff293268e1a1f015343988763dffcbff46359 Mon Sep 17 00:00:00 2001 From: codex-test Date: Mon, 12 Oct 2026 19:34:30 +0000 Subject: [PATCH 2/3] ci: switch to Scripted Pipeline DSL --- Jenkinsfile | 52 ++++++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ab9a205..c1b32e2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,33 +1,37 @@ -pipeline { - agent any - options { timeout(time: 60, unit: 'SECONDS') } - stages { - stage('Checkout and identify change') { - steps { +properties([ + disableConcurrentBuilds(), + buildDiscarder(logRotator(daysToKeepStr: '60', numToKeepStr: '60', artifactDaysToKeepStr: '15', artifactNumToKeepStr: '15')) +]) + +timeout(time: 60, unit: 'SECONDS') { + node { + try { + stage('检出与变更信息') { checkout scm echo "BRANCH_NAME=${env.BRANCH_NAME ?: ''}" echo "CHANGE_ID=${env.CHANGE_ID ?: ''}" echo "CHANGE_TARGET=${env.CHANGE_TARGET ?: ''}" - script { - def scenario = readFile('ci/scenario.txt').trim() - if (!(scenario in ['success', 'unstable', 'failure'])) { - error("Unsupported demo scenario: ${scenario}") - } - env.SCENARIO = scenario + def scenario = readFile('ci/scenario.txt').trim() + if (!(scenario in ['success', 'unstable', 'failure'])) { + error("Unsupported demo scenario: ${scenario}") } + env.SCENARIO = scenario + env.RUN_SECONDS = '1' + env.LOG_LINES = '25' + env.TARGET_ENV = 'sg' + env.RELEASE_VERSION = readFile('VERSION').trim() + def expected = [success: 'SUCCESS', unstable: 'UNSTABLE', failure: 'FAILURE'][scenario] + currentBuild.description = '[演示数据] synthetic=true expected=' + expected + } + stage('构建与报告') { + int status = sh(returnStatus: true, script: 'sh ci/demo-build.sh') + junit 'reports/*.xml' + if (status != 0) error("Demo build exited with status ${status}") + } + } finally { + stage('归档') { + archiveArtifacts artifacts: 'artifacts/*', allowEmptyArchive: true } } - stage('Build and report') { - steps { - script { - int status = sh(script: 'sh ci/demo-build.sh', returnStatus: true) - junit 'reports/*.xml' - if (status != 0) error("Demo build exited with status ${status}") - } - } - } - } - post { - always { archiveArtifacts artifacts: 'artifacts/*', allowEmptyArchive: true } } } -- 2.54.0 From c53e055a58cbffa062c86f94b377de64bfd117c2 Mon Sep 17 00:00:00 2001 From: codex-test Date: Mon, 12 Oct 2026 19:41:58 +0000 Subject: [PATCH 3/3] docs: update existing PR through synchronize webhook --- docs/pr-auto-update.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/pr-auto-update.md diff --git a/docs/pr-auto-update.md b/docs/pr-auto-update.md new file mode 100644 index 0000000..27694f9 --- /dev/null +++ b/docs/pr-auto-update.md @@ -0,0 +1,3 @@ +# PR synchronize fixture + +[DEMO] 2026-10-12T19:41:55.813Z -- 2.54.0