perf(ci): allow two concurrent non-production deploys
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user