Jenkins 集成
最后更新于
最后更新于
pipeline {
agent any
stages {
stage('Build Rust Project with Secrets from Bitwarden') {
steps {
withCredentials([string(credentialsId: 'bitwarden-access-token',
variable: 'BWS_ACCESS_TOKEN')]) {
sh '''
export PATH=$PATH:/usr/local/bin # ensure bws is in PATH
bws run -- <command needing secrets here>
'''
}
}
}
}
}