update Jenkinsfile

This commit is contained in:
Jun Kurihara 2025-05-30 10:40:19 +09:00
commit 8915568fdd
No known key found for this signature in database
GPG key ID: B184DE07B34AA676

7
.build/Jenkinsfile vendored
View file

@ -37,9 +37,6 @@ pipeline {
dir('rust-rpxy') {
sh """
# Update submodule URLs to HTTPS (allows cloning without SSH keys)
sed -i 's|git@github.com:|https://github.com/|g' .gitmodules
# Initialize and update submodules
git submodule update --init
"""
@ -59,7 +56,7 @@ pipeline {
// Build the binary
sh 'cargo build --release'
// Prepare and stash files
sh """
# Move binary to workspace root for easier access
@ -81,7 +78,7 @@ pipeline {
stash includes: "${BINARY_NAME}.spec", name: "rpm-files"
stash includes: "rpxy.service, config.toml", name: "service-file"
stash includes: "LICENSE, README.md", name: "docs"
// Archive the binary as an artifact
archiveArtifacts artifacts: "${BINARY_NAME}", allowEmptyArchive: false, fingerprint: true
}