Viewing docs for Pulumi Delivery v0.2.0
published on Wednesday, Nov 18, 2026 by Pulumi
published on Wednesday, Nov 18, 2026 by Pulumi
Pulumi Delivery
Viewing docs for Pulumi Delivery v0.2.0
published on Wednesday, Nov 18, 2026 by Pulumi
published on Wednesday, Nov 18, 2026 by Pulumi
Declares a GitLab repository and branch. See GitHubSource.
Create GitLabSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GitLabSource(name: string, args: GitLabSourceArgs, opts?: ComponentResourceOptions);@overload
def GitLabSource(resource_name: str,
args: GitLabSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GitLabSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
branch: Optional[str] = None,
repository: Optional[str] = None,
trigger: Optional[Union[bool, SourceTriggerArgs]] = None)func NewGitLabSource(ctx *Context, name string, args GitLabSourceArgs, opts ...ResourceOption) (*GitLabSource, error)public GitLabSource(string name, GitLabSourceArgs args, ComponentResourceOptions? opts = null)
public GitLabSource(String name, GitLabSourceArgs args)
public GitLabSource(String name, GitLabSourceArgs args, ComponentResourceOptions options)
type: delivery:GitLabSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "delivery_git_lab_source" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args GitLabSourceArgs
- The arguments to resource properties.
- opts ComponentResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GitLabSourceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GitLabSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitLabSourceArgs
- The arguments to resource properties.
- opts ComponentResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GitLabSourceArgs
- The arguments to resource properties.
- options ComponentResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gitLabSourceResource = new Delivery.GitLabSource("gitLabSourceResource", new()
{
Branch = "string",
Repository = "string",
Trigger = false,
});
example, err := delivery.NewGitLabSource(ctx, "gitLabSourceResource", &delivery.GitLabSourceArgs{
Branch: pulumi.String("string"),
Repository: pulumi.String("string"),
Trigger: pulumi.Any(false),
})
resource "delivery_git_lab_source" "gitLabSourceResource" {
lifecycle {
create_before_destroy = true
}
branch = "string"
repository = "string"
trigger = false
}
var gitLabSourceResource = new GitLabSource("gitLabSourceResource", GitLabSourceArgs.builder()
.branch("string")
.repository("string")
.trigger(false)
.build());
git_lab_source_resource = delivery.GitLabSource("gitLabSourceResource",
branch="string",
repository="string",
trigger=False)
const gitLabSourceResource = new delivery.GitLabSource("gitLabSourceResource", {
branch: "string",
repository: "string",
trigger: false,
});
type: delivery:GitLabSource
properties:
branch: string
repository: string
trigger: false
GitLabSource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The GitLabSource resource accepts the following input properties:
- Branch string
- Branch of the source.
- Repository string
- Repository of the source. Use
owner/repoon GitHub,group/subgroup/repo(the full path) on GitLab,workspace/repoon Bitbucket andorg/project/repoon Azure DevOps. Pulumi Cloud picks the integration of the organization whose account (GitHub), group (GitLab), workspace (Bitbucket) or organization and project (Azure DevOps) holds the repository. - Trigger
bool | Source
Trigger - Starts a run when someone pushes to the branch. Set true for every push, or { paths } for pushes that change a matching file. If you omit it, the source is part of the release but never starts a run.
- Branch string
- Branch of the source.
- Repository string
- Repository of the source. Use
owner/repoon GitHub,group/subgroup/repo(the full path) on GitLab,workspace/repoon Bitbucket andorg/project/repoon Azure DevOps. Pulumi Cloud picks the integration of the organization whose account (GitHub), group (GitLab), workspace (Bitbucket) or organization and project (Azure DevOps) holds the repository. - Trigger
bool | Source
Trigger Args - Starts a run when someone pushes to the branch. Set true for every push, or { paths } for pushes that change a matching file. If you omit it, the source is part of the release but never starts a run.
- branch string
- Branch of the source.
- repository string
- Repository of the source. Use
owner/repoon GitHub,group/subgroup/repo(the full path) on GitLab,workspace/repoon Bitbucket andorg/project/repoon Azure DevOps. Pulumi Cloud picks the integration of the organization whose account (GitHub), group (GitLab), workspace (Bitbucket) or organization and project (Azure DevOps) holds the repository. - trigger bool | object
- Starts a run when someone pushes to the branch. Set true for every push, or { paths } for pushes that change a matching file. If you omit it, the source is part of the release but never starts a run.
- branch String
- Branch of the source.
- repository String
- Repository of the source. Use
owner/repoon GitHub,group/subgroup/repo(the full path) on GitLab,workspace/repoon Bitbucket andorg/project/repoon Azure DevOps. Pulumi Cloud picks the integration of the organization whose account (GitHub), group (GitLab), workspace (Bitbucket) or organization and project (Azure DevOps) holds the repository. - trigger
Boolean | Source
Trigger - Starts a run when someone pushes to the branch. Set true for every push, or { paths } for pushes that change a matching file. If you omit it, the source is part of the release but never starts a run.
- branch string
- Branch of the source.
- repository string
- Repository of the source. Use
owner/repoon GitHub,group/subgroup/repo(the full path) on GitLab,workspace/repoon Bitbucket andorg/project/repoon Azure DevOps. Pulumi Cloud picks the integration of the organization whose account (GitHub), group (GitLab), workspace (Bitbucket) or organization and project (Azure DevOps) holds the repository. - trigger
boolean | Source
Trigger - Starts a run when someone pushes to the branch. Set true for every push, or { paths } for pushes that change a matching file. If you omit it, the source is part of the release but never starts a run.
- branch str
- Branch of the source.
- repository str
- Repository of the source. Use
owner/repoon GitHub,group/subgroup/repo(the full path) on GitLab,workspace/repoon Bitbucket andorg/project/repoon Azure DevOps. Pulumi Cloud picks the integration of the organization whose account (GitHub), group (GitLab), workspace (Bitbucket) or organization and project (Azure DevOps) holds the repository. - trigger
bool | Source
Trigger Args - Starts a run when someone pushes to the branch. Set true for every push, or { paths } for pushes that change a matching file. If you omit it, the source is part of the release but never starts a run.
- branch String
- Branch of the source.
- repository String
- Repository of the source. Use
owner/repoon GitHub,group/subgroup/repo(the full path) on GitLab,workspace/repoon Bitbucket andorg/project/repoon Azure DevOps. Pulumi Cloud picks the integration of the organization whose account (GitHub), group (GitLab), workspace (Bitbucket) or organization and project (Azure DevOps) holds the repository. - trigger Boolean | Property Map
- Starts a run when someone pushes to the branch. Set true for every push, or { paths } for pushes that change a matching file. If you omit it, the source is part of the release but never starts a run.
Outputs
All input properties are implicitly available as output properties. Additionally, the GitLabSource resource produces the following output properties:
- Commit string
- Commit of the run for this source. It is unknown during registration and preview.
- Commit string
- Commit of the run for this source. It is unknown during registration and preview.
- commit string
- Commit of the run for this source. It is unknown during registration and preview.
- commit String
- Commit of the run for this source. It is unknown during registration and preview.
- commit string
- Commit of the run for this source. It is unknown during registration and preview.
- commit str
- Commit of the run for this source. It is unknown during registration and preview.
- commit String
- Commit of the run for this source. It is unknown during registration and preview.
Supporting Types
SourceTrigger, SourceTriggerArgs
Limits the pushes that start a run.- Paths List<string>
- Glob patterns of changed files. A push starts a run only when it changes a file that matches one of them.
- Paths []string
- Glob patterns of changed files. A push starts a run only when it changes a file that matches one of them.
- paths list(string)
- Glob patterns of changed files. A push starts a run only when it changes a file that matches one of them.
- paths List<String>
- Glob patterns of changed files. A push starts a run only when it changes a file that matches one of them.
- paths string[]
- Glob patterns of changed files. A push starts a run only when it changes a file that matches one of them.
- paths Sequence[str]
- Glob patterns of changed files. A push starts a run only when it changes a file that matches one of them.
- paths List<String>
- Glob patterns of changed files. A push starts a run only when it changes a file that matches one of them.
Package Details
- Repository
- delivery pulumi/pulumi-delivery
- License
- Apache-2.0
Pulumi Delivery
Viewing docs for Pulumi Delivery v0.2.0
published on Wednesday, Nov 18, 2026 by Pulumi
published on Wednesday, Nov 18, 2026 by Pulumi