Skip to content

Commit

Permalink
Lock based on git repository name
Browse files Browse the repository at this point in the history
  • Loading branch information
kierenevans committed Oct 14, 2020
1 parent d5c24e9 commit d75f362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_base/application/overlay/Jenkinsfile.twig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pipeline {
milestone(50)
sh 'ws app publish'
{% if @('pipeline.publish.chart.enabled') %}
lock(resource: '{{ @('workspace.name') }}-publish-chart', inversePrecedence: true) {
lock(resource: '{{ @('pipeline.publish.chart.git.repository') }}', inversePrecedence: true) {
sh 'ws app publish chart "${GIT_BRANCH}" "{{ @('workspace.name') }} build artifact ${GIT_COMMIT}"'
}
{% endif %}
Expand Down

0 comments on commit d75f362

Please sign in to comment.