ci: align stdb archive build name
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-05-06 16:33:43 +08:00
parent e9dfcda418
commit ca394766d1

View File

@@ -61,7 +61,6 @@ pipeline {
script { script {
env.SOURCE_COMMIT = readFile('.jenkins-source-commit').trim() env.SOURCE_COMMIT = readFile('.jenkins-source-commit').trim()
env.EFFECTIVE_BUILD_VERSION = params.BUILD_VERSION?.trim() ? params.BUILD_VERSION.trim() : env.BUILD_NUMBER env.EFFECTIVE_BUILD_VERSION = params.BUILD_VERSION?.trim() ? params.BUILD_VERSION.trim() : env.BUILD_NUMBER
env.STDB_RELEASE_BUILD_NAME = env.EFFECTIVE_BUILD_VERSION
} }
} }
} }
@@ -93,14 +92,14 @@ pipeline {
Write-Host '[stdb-build] 未找到 sccache改用 rustc 直接构建。' Write-Host '[stdb-build] 未找到 sccache改用 rustc 直接构建。'
Remove-Item Env:RUSTC_WRAPPER -ErrorAction SilentlyContinue Remove-Item Env:RUSTC_WRAPPER -ErrorAction SilentlyContinue
} }
npm run build:production-release -- --component spacetime-module npm run build:production-release -- --component spacetime-module --name "$env:EFFECTIVE_BUILD_VERSION"
''' '''
} }
} }
stage('Archive') { stage('Archive') {
steps { steps {
archiveArtifacts artifacts: "build/${env.STDB_RELEASE_BUILD_NAME}/spacetime_module.wasm,build/${env.STDB_RELEASE_BUILD_NAME}/spacetime_module.wasm.sha256,build/${env.STDB_RELEASE_BUILD_NAME}/release-manifest.json", fingerprint: true archiveArtifacts artifacts: "build/${env.EFFECTIVE_BUILD_VERSION}/spacetime_module.wasm,build/${env.EFFECTIVE_BUILD_VERSION}/spacetime_module.wasm.sha256,build/${env.EFFECTIVE_BUILD_VERSION}/release-manifest.json", fingerprint: true
} }
} }