@@ -1074,6 +1074,7 @@ public Project createProject(Project project) throws GitLabApiException {
10741074 * ciConfigPath (optional) - Set path to CI configuration file
10751075 * autoDevopsEnabled (optional) - Enable Auto DevOps for this project
10761076 * squashOption (optional) - set squash option for merge requests
1077+ * ciDeletePipelinesInSeconds (optional) - set the automatic pipeline cleanup time in seconds
10771078 *
10781079 * @param project the Project instance with the configuration for the new project
10791080 * @param importUrl the URL to import the repository from
@@ -1125,6 +1126,7 @@ public Project createProject(Project project, String importUrl) throws GitLabApi
11251126 .withParam ("build_git_strategy" , project .getBuildGitStrategy ())
11261127 .withParam ("build_coverage_regex" , project .getBuildCoverageRegex ())
11271128 .withParam ("ci_config_path" , project .getCiConfigPath ())
1129+ .withParam ("ci_delete_pipelines_in_seconds" , project .getCiDeletePipelinesInSeconds ())
11281130 .withParam ("suggestion_commit_message" , project .getSuggestionCommitMessage ())
11291131 .withParam ("remove_source_branch_after_merge" , project .getRemoveSourceBranchAfterMerge ())
11301132 .withParam ("auto_devops_enabled" , project .getAutoDevopsEnabled ())
@@ -1445,6 +1447,7 @@ public Project createProjectFromTemplate(
14451447 * ciConfigPath (optional) - Set path to CI configuration file
14461448 * ciForwardDeploymentEnabled (optional) - When a new deployment job starts, skip older deployment jobs that are still pending
14471449 * squashOption (optional) - set squash option for merge requests
1450+ * ciDeletePipelinesInSeconds (optional) - set the automatic pipeline cleanup time in seconds
14481451 *
14491452 * NOTE: The following parameters specified by the GitLab API edit project are not supported:
14501453 * import_url
@@ -1494,6 +1497,7 @@ public Project updateProject(Project project) throws GitLabApiException {
14941497 .withParam ("build_coverage_regex" , project .getBuildCoverageRegex ())
14951498 .withParam ("ci_config_path" , project .getCiConfigPath ())
14961499 .withParam ("ci_forward_deployment_enabled" , project .getCiForwardDeploymentEnabled ())
1500+ .withParam ("ci_delete_pipelines_in_seconds" , project .getCiDeletePipelinesInSeconds ())
14971501 .withParam ("merge_method" , project .getMergeMethod ())
14981502 .withParam ("suggestion_commit_message" , project .getSuggestionCommitMessage ())
14991503 .withParam ("remove_source_branch_after_merge" , project .getRemoveSourceBranchAfterMerge ())
0 commit comments