Pipeline Schedule Args
data class PipelineScheduleArgs(val active: Output<Boolean>? = null, val cron: Output<String>? = null, val cronTimezone: Output<String>? = null, val description: Output<String>? = null, val project: Output<String>? = null, val ref: Output<String>? = null) : ConvertibleToJava<PipelineScheduleArgs>
The gitlab.PipelineSchedule
resource allows to manage the lifecycle of a scheduled pipeline. Upstream API: GitLab REST API docs
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.PipelineSchedule;
import com.pulumi.gitlab.PipelineScheduleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new PipelineSchedule("example", PipelineScheduleArgs.builder()
.cron("0 1 * * *")
.description("Used to schedule builds")
.project("12345")
.ref("master")
.build());
}
}
Content copied to clipboard
Import
GitLab pipeline schedules can be imported using an id made up of {project_id}:{pipeline_schedule_id}
, e.g.
$ pulumi import gitlab:index/pipelineSchedule:PipelineSchedule test 1:3
Content copied to clipboard