perf(ci): allow two concurrent non-production deploys

This commit is contained in:
2026-08-24 11:17:17 +08:00
parent 9198ce02d9
commit fe4eb0b593
3 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -173,10 +173,10 @@ pipeline {
agent none
steps {
script {
String deployLock = "firstleg-${params.ENVIRONMENT}-deploy"
String deploySlotLabel = "firstleg-${params.ENVIRONMENT}-deploy-slot"
String credentialId = "firstleg-${params.ENVIRONMENT}-env"
String targetLabel = params.ENVIRONMENT == 'development' ? 'java-dev' : 'java-test'
lock(resource: deployLock, inversePrecedence: true) {
lock(label: deploySlotLabel, quantity: 1, inversePrecedence: true) {
node(targetLabel) {
deleteDir()
try {