@@ -28,7 +28,7 @@ def cancel(self, **kwargs: Any) -> Dict[str, Any]:
2828 GitlabJobCancelError: If the job could not be canceled
2929 """
3030 path = f"{ self .manager .path } /{ self .encoded_id } /cancel"
31- result = self .manager .gitlab .http_post (path )
31+ result = self .manager .gitlab .http_post (path , ** kwargs )
3232 if TYPE_CHECKING :
3333 assert isinstance (result , dict )
3434 return result
@@ -46,7 +46,7 @@ def retry(self, **kwargs: Any) -> Dict[str, Any]:
4646 GitlabJobRetryError: If the job could not be retried
4747 """
4848 path = f"{ self .manager .path } /{ self .encoded_id } /retry"
49- result = self .manager .gitlab .http_post (path )
49+ result = self .manager .gitlab .http_post (path , ** kwargs )
5050 if TYPE_CHECKING :
5151 assert isinstance (result , dict )
5252 return result
@@ -64,7 +64,7 @@ def play(self, **kwargs: Any) -> None:
6464 GitlabJobPlayError: If the job could not be triggered
6565 """
6666 path = f"{ self .manager .path } /{ self .encoded_id } /play"
67- self .manager .gitlab .http_post (path )
67+ self .manager .gitlab .http_post (path , ** kwargs )
6868
6969 @cli .register_custom_action ("ProjectJob" )
7070 @exc .on_http_error (exc .GitlabJobEraseError )
@@ -79,7 +79,7 @@ def erase(self, **kwargs: Any) -> None:
7979 GitlabJobEraseError: If the job could not be erased
8080 """
8181 path = f"{ self .manager .path } /{ self .encoded_id } /erase"
82- self .manager .gitlab .http_post (path )
82+ self .manager .gitlab .http_post (path , ** kwargs )
8383
8484 @cli .register_custom_action ("ProjectJob" )
8585 @exc .on_http_error (exc .GitlabCreateError )
@@ -94,7 +94,7 @@ def keep_artifacts(self, **kwargs: Any) -> None:
9494 GitlabCreateError: If the request could not be performed
9595 """
9696 path = f"{ self .manager .path } /{ self .encoded_id } /artifacts/keep"
97- self .manager .gitlab .http_post (path )
97+ self .manager .gitlab .http_post (path , ** kwargs )
9898
9999 @cli .register_custom_action ("ProjectJob" )
100100 @exc .on_http_error (exc .GitlabCreateError )
@@ -109,7 +109,7 @@ def delete_artifacts(self, **kwargs: Any) -> None:
109109 GitlabDeleteError: If the request could not be performed
110110 """
111111 path = f"{ self .manager .path } /{ self .encoded_id } /artifacts"
112- self .manager .gitlab .http_delete (path )
112+ self .manager .gitlab .http_delete (path , ** kwargs )
113113
114114 @cli .register_custom_action ("ProjectJob" )
115115 @exc .on_http_error (exc .GitlabGetError )
0 commit comments