Comments (2)
A similar use case is low priority builds:
- you normally run builds with
inversePrecedence: true
- you can sometime specify
inversePrecedence: false
and they go at the back of the queue
Although, it seems if we are mixing the LIFO/FIFO model a more flexible feature could be apriority
field (defaults to100
) so that locks are acquired in order of priority.
from lockable-resources-plugin.
It doesn't solve the current issue with inversePrecedence doesn't react as expected, but if you want a work around for allowing jumping the queue, here an exemple with a optional lock in front of the real one:
pipeline {
options {
ansiColor('xterm')
timestamps()
}
parameters {
booleanParam(name: 'FASTLANE', defaultValue: false, description: 'Toggle this value for fastlane deployment')
}
stages {
stage('Slowlane? lock') {
options {
lock(extra: (params.FASTLANE ? [[]] : [resource: 'hyperloop-deployment-slowlane']))
}
stages {
stage('Deploy') {
options {
lock(resource: 'hyperloop-deployment')
}
steps {
script {
echo 'Doing the deployment'
sleep(time: 120, unit: "SECONDS")
}
}
}
}
}
}
}
from lockable-resources-plugin.
Related Issues (20)
- Lease Time HOT 1
- jenkins startup failure HOT 22
- Is there any API documentation on what is supported? Can this be used from command line outside of jenkins? HOT 10
- Missing permission Job/Configure for Administrator
- Adapt plugin for Data Table API 2.0.x HOT 6
- Set reserved timestamp when stealing lock
- manually unlock "globally locked" resource early
- ReservedTimeStamp leads to failure in Plugin:Configuration as Code Plugin during booting jenkins HOT 1
- Add feature to prevent creation of Ephemeral resources
- Sometimes the plugin throws an IndexOutOfBoundsException with multiple locks HOT 1
- Extend lockable-resources build page
- Add timemout attribute to eliminate long stuck when resource is long time locked / reserved
- Sort requested resources by user defined groovy script
- Implement executor count for one resource
- Add way to cancel current queued requests in one job (by groovy)
- Lock the whole pipeline base on variable , and excute stage on specific agent HOT 2
- Jenkins events on lock actions
- Reoccurring null in LockableResourcesManager resources HOT 1
- Make matrix-project optional dependency
- Lock resources whose names are provided by build parameters. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lockable-resources-plugin.