File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ class GitlabJobEraseError(GitlabRetryError):
145
145
pass
146
146
147
147
148
+ class GitlabPipelinePlayError (GitlabRetryError ):
149
+ pass
150
+
151
+
148
152
class GitlabPipelineRetryError (GitlabRetryError ):
149
153
pass
150
154
Original file line number Diff line number Diff line change @@ -3775,17 +3775,17 @@ def take_ownership(self, **kwargs):
3775
3775
self ._update_attrs (server_data )
3776
3776
3777
3777
@cli .register_custom_action ("ProjectPipelineSchedule" )
3778
- @exc .on_http_error (exc .GitlabOwnershipError )
3778
+ @exc .on_http_error (exc .GitlabPipelinePlayError )
3779
3779
def play (self , ** kwargs ):
3780
- # https://docs.gitlab.com/ee/api/pipeline_schedules.html#run-a- scheduled- pipeline-immediately # noqa
3781
- """Play a pipeline schedule immediately .
3780
+ """Trigger a new scheduled pipeline, which runs immediately.
3781
+ The next scheduled run of this pipeline is not affected .
3782
3782
3783
3783
Args:
3784
3784
**kwargs: Extra options to send to the server (e.g. sudo)
3785
3785
3786
3786
Raises:
3787
3787
GitlabAuthenticationError: If authentication is not correct
3788
- GitlabOwnershipError : If the request failed
3788
+ GitlabPipelinePlayError : If the request failed
3789
3789
"""
3790
3790
path = "%s/%s/play" % (self .manager .path , self .get_id ())
3791
3791
server_data = self .manager .gitlab .http_post (path , ** kwargs )
You can’t perform that action at this time.
0 commit comments