diff --git a/jenkins_jobs/modules/properties.py b/jenkins_jobs/modules/properties.py index ab521eab7..3efe1037d 100644 --- a/jenkins_jobs/modules/properties.py +++ b/jenkins_jobs/modules/properties.py @@ -443,6 +443,7 @@ def authorization(registry, xml_parent, data): * **job-workspace** * **ownership-jobs** * **run-delete** + * **run-replay** * **run-update** * **scm-tag** @@ -473,6 +474,7 @@ def authorization(registry, xml_parent, data): 'job-workspace': 'hudson.model.Item.Workspace', 'ownership-jobs': ''.join((ownership, 'Jobs')), 'run-delete': 'hudson.model.Run.Delete', + 'run-replay': 'hudson.model.Run.Replay', 'run-update': 'hudson.model.Run.Update', 'scm-tag': 'hudson.scm.SCM.Tag', } diff --git a/tests/properties/fixtures/authorization.xml b/tests/properties/fixtures/authorization.xml index cf707a3d8..06268a05f 100644 --- a/tests/properties/fixtures/authorization.xml +++ b/tests/properties/fixtures/authorization.xml @@ -18,6 +18,7 @@ <permission>hudson.model.Item.Workspace:admin</permission> <permission>com.synopsys.arc.jenkins.plugins.ownership.OwnershipPlugin.Jobs:admin</permission> <permission>hudson.model.Run.Delete:admin</permission> + <permission>hudson.model.Run.Replay:admin</permission> <permission>hudson.model.Run.Update:admin</permission> <permission>hudson.scm.SCM.Tag:admin</permission> <permission>hudson.model.Item.Read:anonymous</permission> diff --git a/tests/properties/fixtures/authorization.yaml b/tests/properties/fixtures/authorization.yaml index 3b08fbafd..94b6c34ac 100644 --- a/tests/properties/fixtures/authorization.yaml +++ b/tests/properties/fixtures/authorization.yaml @@ -17,6 +17,7 @@ properties: - job-workspace - ownership-jobs - run-delete + - run-replay - run-update - scm-tag anonymous: diff --git a/tests/properties/fixtures/authorization_matrix.xml b/tests/properties/fixtures/authorization_matrix.xml index bdad6d26d..f3fd81777 100644 --- a/tests/properties/fixtures/authorization_matrix.xml +++ b/tests/properties/fixtures/authorization_matrix.xml @@ -10,6 +10,7 @@ <permission>hudson.model.Item.Workspace:admin</permission> <permission>hudson.model.Item.Cancel:admin</permission> <permission>hudson.model.Run.Delete:admin</permission> + <permission>hudson.model.Run.Replay:admin</permission> <permission>hudson.model.Run.Update:admin</permission> <permission>hudson.scm.SCM.Tag:admin</permission> <permission>hudson.model.Item.Discover:anonymous</permission> diff --git a/tests/properties/fixtures/authorization_matrix.yaml b/tests/properties/fixtures/authorization_matrix.yaml index 7863e3b60..61dc70ca2 100644 --- a/tests/properties/fixtures/authorization_matrix.yaml +++ b/tests/properties/fixtures/authorization_matrix.yaml @@ -9,6 +9,7 @@ properties: - job-workspace - job-cancel - run-delete + - run-replay - run-update - scm-tag anonymous: