pulumi-azuredevops 3.8.0a1741411388__py3-none-any.whl → 3.8.0a1742224403__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_azuredevops/__init__.py +1 -0
- pulumi_azuredevops/_inputs.py +435 -26
- pulumi_azuredevops/build_definition.py +335 -0
- pulumi_azuredevops/get_build_definition.py +43 -1
- pulumi_azuredevops/get_client_config.py +61 -5
- pulumi_azuredevops/get_group_membership.py +131 -0
- pulumi_azuredevops/get_teams.py +2 -2
- pulumi_azuredevops/get_users.py +4 -0
- pulumi_azuredevops/outputs.py +546 -18
- pulumi_azuredevops/pulumi-plugin.json +1 -1
- pulumi_azuredevops/service_endpoint_azure_ecr.py +12 -12
- pulumi_azuredevops/service_endpoint_azure_rm.py +8 -0
- {pulumi_azuredevops-3.8.0a1741411388.dist-info → pulumi_azuredevops-3.8.0a1742224403.dist-info}/METADATA +1 -1
- {pulumi_azuredevops-3.8.0a1741411388.dist-info → pulumi_azuredevops-3.8.0a1742224403.dist-info}/RECORD +16 -15
- {pulumi_azuredevops-3.8.0a1741411388.dist-info → pulumi_azuredevops-3.8.0a1742224403.dist-info}/WHEEL +1 -1
- {pulumi_azuredevops-3.8.0a1741411388.dist-info → pulumi_azuredevops-3.8.0a1742224403.dist-info}/top_level.txt +0 -0
pulumi_azuredevops/outputs.py
CHANGED
@@ -37,6 +37,10 @@ __all__ = [
|
|
37
37
|
'BuildDefinitionCiTriggerOverrideBranchFilter',
|
38
38
|
'BuildDefinitionCiTriggerOverridePathFilter',
|
39
39
|
'BuildDefinitionFeature',
|
40
|
+
'BuildDefinitionJob',
|
41
|
+
'BuildDefinitionJobDependency',
|
42
|
+
'BuildDefinitionJobTarget',
|
43
|
+
'BuildDefinitionJobTargetExecutionOptions',
|
40
44
|
'BuildDefinitionPullRequestTrigger',
|
41
45
|
'BuildDefinitionPullRequestTriggerForks',
|
42
46
|
'BuildDefinitionPullRequestTriggerOverride',
|
@@ -88,6 +92,10 @@ __all__ = [
|
|
88
92
|
'GetBuildDefinitionCiTriggerOverrideResult',
|
89
93
|
'GetBuildDefinitionCiTriggerOverrideBranchFilterResult',
|
90
94
|
'GetBuildDefinitionCiTriggerOverridePathFilterResult',
|
95
|
+
'GetBuildDefinitionJobResult',
|
96
|
+
'GetBuildDefinitionJobDependencyResult',
|
97
|
+
'GetBuildDefinitionJobTargetResult',
|
98
|
+
'GetBuildDefinitionJobTargetExecutionOptionResult',
|
91
99
|
'GetBuildDefinitionPullRequestTriggerResult',
|
92
100
|
'GetBuildDefinitionPullRequestTriggerForkResult',
|
93
101
|
'GetBuildDefinitionPullRequestTriggerOverrideResult',
|
@@ -1514,6 +1522,291 @@ class BuildDefinitionFeature(dict):
|
|
1514
1522
|
return pulumi.get(self, "skip_first_run")
|
1515
1523
|
|
1516
1524
|
|
1525
|
+
@pulumi.output_type
|
1526
|
+
class BuildDefinitionJob(dict):
|
1527
|
+
@staticmethod
|
1528
|
+
def __key_warning(key: str):
|
1529
|
+
suggest = None
|
1530
|
+
if key == "refName":
|
1531
|
+
suggest = "ref_name"
|
1532
|
+
elif key == "allowScriptsAuthAccessOption":
|
1533
|
+
suggest = "allow_scripts_auth_access_option"
|
1534
|
+
elif key == "jobAuthorizationScope":
|
1535
|
+
suggest = "job_authorization_scope"
|
1536
|
+
elif key == "jobCancelTimeoutInMinutes":
|
1537
|
+
suggest = "job_cancel_timeout_in_minutes"
|
1538
|
+
elif key == "jobTimeoutInMinutes":
|
1539
|
+
suggest = "job_timeout_in_minutes"
|
1540
|
+
|
1541
|
+
if suggest:
|
1542
|
+
pulumi.log.warn(f"Key '{key}' not found in BuildDefinitionJob. Access the value via the '{suggest}' property getter instead.")
|
1543
|
+
|
1544
|
+
def __getitem__(self, key: str) -> Any:
|
1545
|
+
BuildDefinitionJob.__key_warning(key)
|
1546
|
+
return super().__getitem__(key)
|
1547
|
+
|
1548
|
+
def get(self, key: str, default = None) -> Any:
|
1549
|
+
BuildDefinitionJob.__key_warning(key)
|
1550
|
+
return super().get(key, default)
|
1551
|
+
|
1552
|
+
def __init__(__self__, *,
|
1553
|
+
condition: str,
|
1554
|
+
name: str,
|
1555
|
+
ref_name: str,
|
1556
|
+
target: 'outputs.BuildDefinitionJobTarget',
|
1557
|
+
allow_scripts_auth_access_option: Optional[bool] = None,
|
1558
|
+
dependencies: Optional[Sequence['outputs.BuildDefinitionJobDependency']] = None,
|
1559
|
+
job_authorization_scope: Optional[str] = None,
|
1560
|
+
job_cancel_timeout_in_minutes: Optional[int] = None,
|
1561
|
+
job_timeout_in_minutes: Optional[int] = None):
|
1562
|
+
"""
|
1563
|
+
:param str condition: Specifies when this job should run. Can **Custom conditions** to specify more complex conditions. Possible values: `succeeded()`, `succeededOrFailed()`, `always()`, `failed()` etc. More details: [Pipeline conditions](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops)
|
1564
|
+
:param str name: The name of the job.
|
1565
|
+
:param str ref_name: The reference name of the job, can be used to define the job dependencies.
|
1566
|
+
:param 'BuildDefinitionJobTargetArgs' target: A `target` blocks as documented below.
|
1567
|
+
:param bool allow_scripts_auth_access_option: Enables scripts and other processes launched by tasks to access the OAuth token through the `System.AccessToken` variable. Possible values: `true`, `false`. Defaults to `false`. Available when Job type is `AgentJob`
|
1568
|
+
:param Sequence['BuildDefinitionJobDependencyArgs'] dependencies: A `dependencies` blocks as documented below. Define the job dependencies.
|
1569
|
+
:param str job_authorization_scope: The job authorization scope for builds queued against this definition. Possible values are: `project`, `projectCollection`. Defaults to `projectCollection`.
|
1570
|
+
:param int job_cancel_timeout_in_minutes: The job cancel timeout (in minutes) for builds cancelled by user for this definition. Possible values are between `0` and `60`. Defaults to `0`.
|
1571
|
+
:param int job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition. Possible values are between `0` and `1000000000`. Defaults to `0`.
|
1572
|
+
"""
|
1573
|
+
pulumi.set(__self__, "condition", condition)
|
1574
|
+
pulumi.set(__self__, "name", name)
|
1575
|
+
pulumi.set(__self__, "ref_name", ref_name)
|
1576
|
+
pulumi.set(__self__, "target", target)
|
1577
|
+
if allow_scripts_auth_access_option is not None:
|
1578
|
+
pulumi.set(__self__, "allow_scripts_auth_access_option", allow_scripts_auth_access_option)
|
1579
|
+
if dependencies is not None:
|
1580
|
+
pulumi.set(__self__, "dependencies", dependencies)
|
1581
|
+
if job_authorization_scope is not None:
|
1582
|
+
pulumi.set(__self__, "job_authorization_scope", job_authorization_scope)
|
1583
|
+
if job_cancel_timeout_in_minutes is not None:
|
1584
|
+
pulumi.set(__self__, "job_cancel_timeout_in_minutes", job_cancel_timeout_in_minutes)
|
1585
|
+
if job_timeout_in_minutes is not None:
|
1586
|
+
pulumi.set(__self__, "job_timeout_in_minutes", job_timeout_in_minutes)
|
1587
|
+
|
1588
|
+
@property
|
1589
|
+
@pulumi.getter
|
1590
|
+
def condition(self) -> str:
|
1591
|
+
"""
|
1592
|
+
Specifies when this job should run. Can **Custom conditions** to specify more complex conditions. Possible values: `succeeded()`, `succeededOrFailed()`, `always()`, `failed()` etc. More details: [Pipeline conditions](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops)
|
1593
|
+
"""
|
1594
|
+
return pulumi.get(self, "condition")
|
1595
|
+
|
1596
|
+
@property
|
1597
|
+
@pulumi.getter
|
1598
|
+
def name(self) -> str:
|
1599
|
+
"""
|
1600
|
+
The name of the job.
|
1601
|
+
"""
|
1602
|
+
return pulumi.get(self, "name")
|
1603
|
+
|
1604
|
+
@property
|
1605
|
+
@pulumi.getter(name="refName")
|
1606
|
+
def ref_name(self) -> str:
|
1607
|
+
"""
|
1608
|
+
The reference name of the job, can be used to define the job dependencies.
|
1609
|
+
"""
|
1610
|
+
return pulumi.get(self, "ref_name")
|
1611
|
+
|
1612
|
+
@property
|
1613
|
+
@pulumi.getter
|
1614
|
+
def target(self) -> 'outputs.BuildDefinitionJobTarget':
|
1615
|
+
"""
|
1616
|
+
A `target` blocks as documented below.
|
1617
|
+
"""
|
1618
|
+
return pulumi.get(self, "target")
|
1619
|
+
|
1620
|
+
@property
|
1621
|
+
@pulumi.getter(name="allowScriptsAuthAccessOption")
|
1622
|
+
def allow_scripts_auth_access_option(self) -> Optional[bool]:
|
1623
|
+
"""
|
1624
|
+
Enables scripts and other processes launched by tasks to access the OAuth token through the `System.AccessToken` variable. Possible values: `true`, `false`. Defaults to `false`. Available when Job type is `AgentJob`
|
1625
|
+
"""
|
1626
|
+
return pulumi.get(self, "allow_scripts_auth_access_option")
|
1627
|
+
|
1628
|
+
@property
|
1629
|
+
@pulumi.getter
|
1630
|
+
def dependencies(self) -> Optional[Sequence['outputs.BuildDefinitionJobDependency']]:
|
1631
|
+
"""
|
1632
|
+
A `dependencies` blocks as documented below. Define the job dependencies.
|
1633
|
+
"""
|
1634
|
+
return pulumi.get(self, "dependencies")
|
1635
|
+
|
1636
|
+
@property
|
1637
|
+
@pulumi.getter(name="jobAuthorizationScope")
|
1638
|
+
def job_authorization_scope(self) -> Optional[str]:
|
1639
|
+
"""
|
1640
|
+
The job authorization scope for builds queued against this definition. Possible values are: `project`, `projectCollection`. Defaults to `projectCollection`.
|
1641
|
+
"""
|
1642
|
+
return pulumi.get(self, "job_authorization_scope")
|
1643
|
+
|
1644
|
+
@property
|
1645
|
+
@pulumi.getter(name="jobCancelTimeoutInMinutes")
|
1646
|
+
def job_cancel_timeout_in_minutes(self) -> Optional[int]:
|
1647
|
+
"""
|
1648
|
+
The job cancel timeout (in minutes) for builds cancelled by user for this definition. Possible values are between `0` and `60`. Defaults to `0`.
|
1649
|
+
"""
|
1650
|
+
return pulumi.get(self, "job_cancel_timeout_in_minutes")
|
1651
|
+
|
1652
|
+
@property
|
1653
|
+
@pulumi.getter(name="jobTimeoutInMinutes")
|
1654
|
+
def job_timeout_in_minutes(self) -> Optional[int]:
|
1655
|
+
"""
|
1656
|
+
The job execution timeout (in minutes) for builds queued against this definition. Possible values are between `0` and `1000000000`. Defaults to `0`.
|
1657
|
+
"""
|
1658
|
+
return pulumi.get(self, "job_timeout_in_minutes")
|
1659
|
+
|
1660
|
+
|
1661
|
+
@pulumi.output_type
|
1662
|
+
class BuildDefinitionJobDependency(dict):
|
1663
|
+
def __init__(__self__, *,
|
1664
|
+
scope: str):
|
1665
|
+
"""
|
1666
|
+
:param str scope: The job reference name that depends on. Reference to `jobs.ref_name`
|
1667
|
+
"""
|
1668
|
+
pulumi.set(__self__, "scope", scope)
|
1669
|
+
|
1670
|
+
@property
|
1671
|
+
@pulumi.getter
|
1672
|
+
def scope(self) -> str:
|
1673
|
+
"""
|
1674
|
+
The job reference name that depends on. Reference to `jobs.ref_name`
|
1675
|
+
"""
|
1676
|
+
return pulumi.get(self, "scope")
|
1677
|
+
|
1678
|
+
|
1679
|
+
@pulumi.output_type
|
1680
|
+
class BuildDefinitionJobTarget(dict):
|
1681
|
+
@staticmethod
|
1682
|
+
def __key_warning(key: str):
|
1683
|
+
suggest = None
|
1684
|
+
if key == "executionOptions":
|
1685
|
+
suggest = "execution_options"
|
1686
|
+
|
1687
|
+
if suggest:
|
1688
|
+
pulumi.log.warn(f"Key '{key}' not found in BuildDefinitionJobTarget. Access the value via the '{suggest}' property getter instead.")
|
1689
|
+
|
1690
|
+
def __getitem__(self, key: str) -> Any:
|
1691
|
+
BuildDefinitionJobTarget.__key_warning(key)
|
1692
|
+
return super().__getitem__(key)
|
1693
|
+
|
1694
|
+
def get(self, key: str, default = None) -> Any:
|
1695
|
+
BuildDefinitionJobTarget.__key_warning(key)
|
1696
|
+
return super().get(key, default)
|
1697
|
+
|
1698
|
+
def __init__(__self__, *,
|
1699
|
+
execution_options: 'outputs.BuildDefinitionJobTargetExecutionOptions',
|
1700
|
+
type: str,
|
1701
|
+
demands: Optional[Sequence[str]] = None):
|
1702
|
+
"""
|
1703
|
+
:param 'BuildDefinitionJobTargetExecutionOptionsArgs' execution_options: A `execution_options` blocks as documented below.
|
1704
|
+
:param str type: The job type. Possible values: `AgentJob`, `AgentlessJob`
|
1705
|
+
:param Sequence[str] demands: A list of demands that represents the agent capabilities required by this build. Example: `git`
|
1706
|
+
"""
|
1707
|
+
pulumi.set(__self__, "execution_options", execution_options)
|
1708
|
+
pulumi.set(__self__, "type", type)
|
1709
|
+
if demands is not None:
|
1710
|
+
pulumi.set(__self__, "demands", demands)
|
1711
|
+
|
1712
|
+
@property
|
1713
|
+
@pulumi.getter(name="executionOptions")
|
1714
|
+
def execution_options(self) -> 'outputs.BuildDefinitionJobTargetExecutionOptions':
|
1715
|
+
"""
|
1716
|
+
A `execution_options` blocks as documented below.
|
1717
|
+
"""
|
1718
|
+
return pulumi.get(self, "execution_options")
|
1719
|
+
|
1720
|
+
@property
|
1721
|
+
@pulumi.getter
|
1722
|
+
def type(self) -> str:
|
1723
|
+
"""
|
1724
|
+
The job type. Possible values: `AgentJob`, `AgentlessJob`
|
1725
|
+
"""
|
1726
|
+
return pulumi.get(self, "type")
|
1727
|
+
|
1728
|
+
@property
|
1729
|
+
@pulumi.getter
|
1730
|
+
def demands(self) -> Optional[Sequence[str]]:
|
1731
|
+
"""
|
1732
|
+
A list of demands that represents the agent capabilities required by this build. Example: `git`
|
1733
|
+
"""
|
1734
|
+
return pulumi.get(self, "demands")
|
1735
|
+
|
1736
|
+
|
1737
|
+
@pulumi.output_type
|
1738
|
+
class BuildDefinitionJobTargetExecutionOptions(dict):
|
1739
|
+
@staticmethod
|
1740
|
+
def __key_warning(key: str):
|
1741
|
+
suggest = None
|
1742
|
+
if key == "continueOnError":
|
1743
|
+
suggest = "continue_on_error"
|
1744
|
+
elif key == "maxConcurrency":
|
1745
|
+
suggest = "max_concurrency"
|
1746
|
+
|
1747
|
+
if suggest:
|
1748
|
+
pulumi.log.warn(f"Key '{key}' not found in BuildDefinitionJobTargetExecutionOptions. Access the value via the '{suggest}' property getter instead.")
|
1749
|
+
|
1750
|
+
def __getitem__(self, key: str) -> Any:
|
1751
|
+
BuildDefinitionJobTargetExecutionOptions.__key_warning(key)
|
1752
|
+
return super().__getitem__(key)
|
1753
|
+
|
1754
|
+
def get(self, key: str, default = None) -> Any:
|
1755
|
+
BuildDefinitionJobTargetExecutionOptions.__key_warning(key)
|
1756
|
+
return super().get(key, default)
|
1757
|
+
|
1758
|
+
def __init__(__self__, *,
|
1759
|
+
type: str,
|
1760
|
+
continue_on_error: Optional[bool] = None,
|
1761
|
+
max_concurrency: Optional[int] = None,
|
1762
|
+
multipliers: Optional[str] = None):
|
1763
|
+
"""
|
1764
|
+
:param str type: The execution type of the Job. Possible values are: `None`, `Multi-Configuration`, `Multi-Agent`.
|
1765
|
+
:param bool continue_on_error: Whether to continue the job when an error occurs. Possible values are: `true`, `false`.
|
1766
|
+
:param int max_concurrency: Limit the number of agents to be used. If job type is `AgentlessJob`, the concurrency is not configurable and is fixed to 50.
|
1767
|
+
:param str multipliers: A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables. Available when `execution_options.type` is `Multi-Configuration`.
|
1768
|
+
"""
|
1769
|
+
pulumi.set(__self__, "type", type)
|
1770
|
+
if continue_on_error is not None:
|
1771
|
+
pulumi.set(__self__, "continue_on_error", continue_on_error)
|
1772
|
+
if max_concurrency is not None:
|
1773
|
+
pulumi.set(__self__, "max_concurrency", max_concurrency)
|
1774
|
+
if multipliers is not None:
|
1775
|
+
pulumi.set(__self__, "multipliers", multipliers)
|
1776
|
+
|
1777
|
+
@property
|
1778
|
+
@pulumi.getter
|
1779
|
+
def type(self) -> str:
|
1780
|
+
"""
|
1781
|
+
The execution type of the Job. Possible values are: `None`, `Multi-Configuration`, `Multi-Agent`.
|
1782
|
+
"""
|
1783
|
+
return pulumi.get(self, "type")
|
1784
|
+
|
1785
|
+
@property
|
1786
|
+
@pulumi.getter(name="continueOnError")
|
1787
|
+
def continue_on_error(self) -> Optional[bool]:
|
1788
|
+
"""
|
1789
|
+
Whether to continue the job when an error occurs. Possible values are: `true`, `false`.
|
1790
|
+
"""
|
1791
|
+
return pulumi.get(self, "continue_on_error")
|
1792
|
+
|
1793
|
+
@property
|
1794
|
+
@pulumi.getter(name="maxConcurrency")
|
1795
|
+
def max_concurrency(self) -> Optional[int]:
|
1796
|
+
"""
|
1797
|
+
Limit the number of agents to be used. If job type is `AgentlessJob`, the concurrency is not configurable and is fixed to 50.
|
1798
|
+
"""
|
1799
|
+
return pulumi.get(self, "max_concurrency")
|
1800
|
+
|
1801
|
+
@property
|
1802
|
+
@pulumi.getter
|
1803
|
+
def multipliers(self) -> Optional[str]:
|
1804
|
+
"""
|
1805
|
+
A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables. Available when `execution_options.type` is `Multi-Configuration`.
|
1806
|
+
"""
|
1807
|
+
return pulumi.get(self, "multipliers")
|
1808
|
+
|
1809
|
+
|
1517
1810
|
@pulumi.output_type
|
1518
1811
|
class BuildDefinitionPullRequestTrigger(dict):
|
1519
1812
|
@staticmethod
|
@@ -1773,8 +2066,6 @@ class BuildDefinitionRepository(dict):
|
|
1773
2066
|
suggest = "repo_id"
|
1774
2067
|
elif key == "repoType":
|
1775
2068
|
suggest = "repo_type"
|
1776
|
-
elif key == "ymlPath":
|
1777
|
-
suggest = "yml_path"
|
1778
2069
|
elif key == "branchName":
|
1779
2070
|
suggest = "branch_name"
|
1780
2071
|
elif key == "githubEnterpriseUrl":
|
@@ -1783,6 +2074,8 @@ class BuildDefinitionRepository(dict):
|
|
1783
2074
|
suggest = "report_build_status"
|
1784
2075
|
elif key == "serviceConnectionId":
|
1785
2076
|
suggest = "service_connection_id"
|
2077
|
+
elif key == "ymlPath":
|
2078
|
+
suggest = "yml_path"
|
1786
2079
|
|
1787
2080
|
if suggest:
|
1788
2081
|
pulumi.log.warn(f"Key '{key}' not found in BuildDefinitionRepository. Access the value via the '{suggest}' property getter instead.")
|
@@ -1798,23 +2091,24 @@ class BuildDefinitionRepository(dict):
|
|
1798
2091
|
def __init__(__self__, *,
|
1799
2092
|
repo_id: str,
|
1800
2093
|
repo_type: str,
|
1801
|
-
yml_path: str,
|
1802
2094
|
branch_name: Optional[str] = None,
|
1803
2095
|
github_enterprise_url: Optional[str] = None,
|
1804
2096
|
report_build_status: Optional[bool] = None,
|
1805
|
-
service_connection_id: Optional[str] = None
|
2097
|
+
service_connection_id: Optional[str] = None,
|
2098
|
+
url: Optional[str] = None,
|
2099
|
+
yml_path: Optional[str] = None):
|
1806
2100
|
"""
|
1807
2101
|
:param str repo_id: The id of the repository. For `TfsGit` repos, this is simply the ID of the repository. For `Github` repos, this will take the form of `<GitHub Org>/<Repo Name>`. For `Bitbucket` repos, this will take the form of `<Workspace ID>/<Repo Name>`.
|
1808
|
-
:param str repo_type: The repository type. Possible values are: `GitHub` or `TfsGit` or `Bitbucket` or `GitHub Enterprise`. Defaults to `GitHub`. If `repo_type` is `GitHubEnterprise`, must use existing project and GitHub Enterprise service connection.
|
1809
|
-
:param str yml_path: The path of the Yaml file describing the build definition.
|
2102
|
+
:param str repo_type: The repository type. Possible values are: `GitHub` or `TfsGit` or `Bitbucket` or `GitHub Enterprise` or `Git`. Defaults to `GitHub`. If `repo_type` is `GitHubEnterprise`, must use existing project and GitHub Enterprise service connection.
|
1810
2103
|
:param str branch_name: The branch name for which builds are triggered. Defaults to `master`.
|
1811
|
-
:param str github_enterprise_url: The Github Enterprise URL. Used if `repo_type` is `GithubEnterprise`.
|
2104
|
+
:param str github_enterprise_url: The Github Enterprise URL. Used if `repo_type` is `GithubEnterprise`. Conflict with `url`
|
1812
2105
|
:param bool report_build_status: Report build status. Default is true.
|
1813
2106
|
:param str service_connection_id: The service connection ID. Used if the `repo_type` is `GitHub` or `GitHubEnterprise`.
|
2107
|
+
:param str url: The URL of the Git repository. Used if `repo_type` is `Git`. Conflict with `github_enterprise_url`
|
2108
|
+
:param str yml_path: The path of the Yaml file describing the build definition.
|
1814
2109
|
"""
|
1815
2110
|
pulumi.set(__self__, "repo_id", repo_id)
|
1816
2111
|
pulumi.set(__self__, "repo_type", repo_type)
|
1817
|
-
pulumi.set(__self__, "yml_path", yml_path)
|
1818
2112
|
if branch_name is not None:
|
1819
2113
|
pulumi.set(__self__, "branch_name", branch_name)
|
1820
2114
|
if github_enterprise_url is not None:
|
@@ -1823,6 +2117,10 @@ class BuildDefinitionRepository(dict):
|
|
1823
2117
|
pulumi.set(__self__, "report_build_status", report_build_status)
|
1824
2118
|
if service_connection_id is not None:
|
1825
2119
|
pulumi.set(__self__, "service_connection_id", service_connection_id)
|
2120
|
+
if url is not None:
|
2121
|
+
pulumi.set(__self__, "url", url)
|
2122
|
+
if yml_path is not None:
|
2123
|
+
pulumi.set(__self__, "yml_path", yml_path)
|
1826
2124
|
|
1827
2125
|
@property
|
1828
2126
|
@pulumi.getter(name="repoId")
|
@@ -1836,18 +2134,10 @@ class BuildDefinitionRepository(dict):
|
|
1836
2134
|
@pulumi.getter(name="repoType")
|
1837
2135
|
def repo_type(self) -> str:
|
1838
2136
|
"""
|
1839
|
-
The repository type. Possible values are: `GitHub` or `TfsGit` or `Bitbucket` or `GitHub Enterprise`. Defaults to `GitHub`. If `repo_type` is `GitHubEnterprise`, must use existing project and GitHub Enterprise service connection.
|
2137
|
+
The repository type. Possible values are: `GitHub` or `TfsGit` or `Bitbucket` or `GitHub Enterprise` or `Git`. Defaults to `GitHub`. If `repo_type` is `GitHubEnterprise`, must use existing project and GitHub Enterprise service connection.
|
1840
2138
|
"""
|
1841
2139
|
return pulumi.get(self, "repo_type")
|
1842
2140
|
|
1843
|
-
@property
|
1844
|
-
@pulumi.getter(name="ymlPath")
|
1845
|
-
def yml_path(self) -> str:
|
1846
|
-
"""
|
1847
|
-
The path of the Yaml file describing the build definition.
|
1848
|
-
"""
|
1849
|
-
return pulumi.get(self, "yml_path")
|
1850
|
-
|
1851
2141
|
@property
|
1852
2142
|
@pulumi.getter(name="branchName")
|
1853
2143
|
def branch_name(self) -> Optional[str]:
|
@@ -1860,7 +2150,7 @@ class BuildDefinitionRepository(dict):
|
|
1860
2150
|
@pulumi.getter(name="githubEnterpriseUrl")
|
1861
2151
|
def github_enterprise_url(self) -> Optional[str]:
|
1862
2152
|
"""
|
1863
|
-
The Github Enterprise URL. Used if `repo_type` is `GithubEnterprise`.
|
2153
|
+
The Github Enterprise URL. Used if `repo_type` is `GithubEnterprise`. Conflict with `url`
|
1864
2154
|
"""
|
1865
2155
|
return pulumi.get(self, "github_enterprise_url")
|
1866
2156
|
|
@@ -1880,6 +2170,22 @@ class BuildDefinitionRepository(dict):
|
|
1880
2170
|
"""
|
1881
2171
|
return pulumi.get(self, "service_connection_id")
|
1882
2172
|
|
2173
|
+
@property
|
2174
|
+
@pulumi.getter
|
2175
|
+
def url(self) -> Optional[str]:
|
2176
|
+
"""
|
2177
|
+
The URL of the Git repository. Used if `repo_type` is `Git`. Conflict with `github_enterprise_url`
|
2178
|
+
"""
|
2179
|
+
return pulumi.get(self, "url")
|
2180
|
+
|
2181
|
+
@property
|
2182
|
+
@pulumi.getter(name="ymlPath")
|
2183
|
+
def yml_path(self) -> Optional[str]:
|
2184
|
+
"""
|
2185
|
+
The path of the Yaml file describing the build definition.
|
2186
|
+
"""
|
2187
|
+
return pulumi.get(self, "yml_path")
|
2188
|
+
|
1883
2189
|
|
1884
2190
|
@pulumi.output_type
|
1885
2191
|
class BuildDefinitionSchedule(dict):
|
@@ -4247,6 +4553,221 @@ class GetBuildDefinitionCiTriggerOverridePathFilterResult(dict):
|
|
4247
4553
|
return pulumi.get(self, "includes")
|
4248
4554
|
|
4249
4555
|
|
4556
|
+
@pulumi.output_type
|
4557
|
+
class GetBuildDefinitionJobResult(dict):
|
4558
|
+
def __init__(__self__, *,
|
4559
|
+
allow_scripts_auth_access_option: bool,
|
4560
|
+
condition: str,
|
4561
|
+
dependencies: Sequence['outputs.GetBuildDefinitionJobDependencyResult'],
|
4562
|
+
job_authorization_scope: str,
|
4563
|
+
job_cancel_timeout_in_minutes: int,
|
4564
|
+
job_timeout_in_minutes: int,
|
4565
|
+
name: str,
|
4566
|
+
ref_name: str,
|
4567
|
+
targets: Sequence['outputs.GetBuildDefinitionJobTargetResult']):
|
4568
|
+
"""
|
4569
|
+
:param bool allow_scripts_auth_access_option: Enables scripts and other processes launched by tasks to access the OAuth token through the `System.AccessToken` variable.
|
4570
|
+
:param str condition: Specifies when this job should run. Can **Custom conditions** to specify more complex conditions. More details: [Pipeline conditions](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops)
|
4571
|
+
:param Sequence['GetBuildDefinitionJobDependencyArgs'] dependencies: A `dependencies` blocks as documented below. Define the job dependencies.
|
4572
|
+
:param str job_authorization_scope: The job authorization scope for builds queued against this definition.
|
4573
|
+
:param int job_cancel_timeout_in_minutes: The job cancel timeout (in minutes) for builds cancelled by user for this definition.
|
4574
|
+
:param int job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition.
|
4575
|
+
:param str name: The name of this Build Definition.
|
4576
|
+
:param str ref_name: The reference name of the job, can be used to define the job dependencies.
|
4577
|
+
:param Sequence['GetBuildDefinitionJobTargetArgs'] targets: A `target` blocks as documented below.
|
4578
|
+
"""
|
4579
|
+
pulumi.set(__self__, "allow_scripts_auth_access_option", allow_scripts_auth_access_option)
|
4580
|
+
pulumi.set(__self__, "condition", condition)
|
4581
|
+
pulumi.set(__self__, "dependencies", dependencies)
|
4582
|
+
pulumi.set(__self__, "job_authorization_scope", job_authorization_scope)
|
4583
|
+
pulumi.set(__self__, "job_cancel_timeout_in_minutes", job_cancel_timeout_in_minutes)
|
4584
|
+
pulumi.set(__self__, "job_timeout_in_minutes", job_timeout_in_minutes)
|
4585
|
+
pulumi.set(__self__, "name", name)
|
4586
|
+
pulumi.set(__self__, "ref_name", ref_name)
|
4587
|
+
pulumi.set(__self__, "targets", targets)
|
4588
|
+
|
4589
|
+
@property
|
4590
|
+
@pulumi.getter(name="allowScriptsAuthAccessOption")
|
4591
|
+
def allow_scripts_auth_access_option(self) -> bool:
|
4592
|
+
"""
|
4593
|
+
Enables scripts and other processes launched by tasks to access the OAuth token through the `System.AccessToken` variable.
|
4594
|
+
"""
|
4595
|
+
return pulumi.get(self, "allow_scripts_auth_access_option")
|
4596
|
+
|
4597
|
+
@property
|
4598
|
+
@pulumi.getter
|
4599
|
+
def condition(self) -> str:
|
4600
|
+
"""
|
4601
|
+
Specifies when this job should run. Can **Custom conditions** to specify more complex conditions. More details: [Pipeline conditions](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops)
|
4602
|
+
"""
|
4603
|
+
return pulumi.get(self, "condition")
|
4604
|
+
|
4605
|
+
@property
|
4606
|
+
@pulumi.getter
|
4607
|
+
def dependencies(self) -> Sequence['outputs.GetBuildDefinitionJobDependencyResult']:
|
4608
|
+
"""
|
4609
|
+
A `dependencies` blocks as documented below. Define the job dependencies.
|
4610
|
+
"""
|
4611
|
+
return pulumi.get(self, "dependencies")
|
4612
|
+
|
4613
|
+
@property
|
4614
|
+
@pulumi.getter(name="jobAuthorizationScope")
|
4615
|
+
def job_authorization_scope(self) -> str:
|
4616
|
+
"""
|
4617
|
+
The job authorization scope for builds queued against this definition.
|
4618
|
+
"""
|
4619
|
+
return pulumi.get(self, "job_authorization_scope")
|
4620
|
+
|
4621
|
+
@property
|
4622
|
+
@pulumi.getter(name="jobCancelTimeoutInMinutes")
|
4623
|
+
def job_cancel_timeout_in_minutes(self) -> int:
|
4624
|
+
"""
|
4625
|
+
The job cancel timeout (in minutes) for builds cancelled by user for this definition.
|
4626
|
+
"""
|
4627
|
+
return pulumi.get(self, "job_cancel_timeout_in_minutes")
|
4628
|
+
|
4629
|
+
@property
|
4630
|
+
@pulumi.getter(name="jobTimeoutInMinutes")
|
4631
|
+
def job_timeout_in_minutes(self) -> int:
|
4632
|
+
"""
|
4633
|
+
The job execution timeout (in minutes) for builds queued against this definition.
|
4634
|
+
"""
|
4635
|
+
return pulumi.get(self, "job_timeout_in_minutes")
|
4636
|
+
|
4637
|
+
@property
|
4638
|
+
@pulumi.getter
|
4639
|
+
def name(self) -> str:
|
4640
|
+
"""
|
4641
|
+
The name of this Build Definition.
|
4642
|
+
"""
|
4643
|
+
return pulumi.get(self, "name")
|
4644
|
+
|
4645
|
+
@property
|
4646
|
+
@pulumi.getter(name="refName")
|
4647
|
+
def ref_name(self) -> str:
|
4648
|
+
"""
|
4649
|
+
The reference name of the job, can be used to define the job dependencies.
|
4650
|
+
"""
|
4651
|
+
return pulumi.get(self, "ref_name")
|
4652
|
+
|
4653
|
+
@property
|
4654
|
+
@pulumi.getter
|
4655
|
+
def targets(self) -> Sequence['outputs.GetBuildDefinitionJobTargetResult']:
|
4656
|
+
"""
|
4657
|
+
A `target` blocks as documented below.
|
4658
|
+
"""
|
4659
|
+
return pulumi.get(self, "targets")
|
4660
|
+
|
4661
|
+
|
4662
|
+
@pulumi.output_type
|
4663
|
+
class GetBuildDefinitionJobDependencyResult(dict):
|
4664
|
+
def __init__(__self__, *,
|
4665
|
+
scope: str):
|
4666
|
+
"""
|
4667
|
+
:param str scope: The job reference name that depends on. Reference to `jobs.ref_name`
|
4668
|
+
"""
|
4669
|
+
pulumi.set(__self__, "scope", scope)
|
4670
|
+
|
4671
|
+
@property
|
4672
|
+
@pulumi.getter
|
4673
|
+
def scope(self) -> str:
|
4674
|
+
"""
|
4675
|
+
The job reference name that depends on. Reference to `jobs.ref_name`
|
4676
|
+
"""
|
4677
|
+
return pulumi.get(self, "scope")
|
4678
|
+
|
4679
|
+
|
4680
|
+
@pulumi.output_type
|
4681
|
+
class GetBuildDefinitionJobTargetResult(dict):
|
4682
|
+
def __init__(__self__, *,
|
4683
|
+
demands: Sequence[str],
|
4684
|
+
execution_options: Sequence['outputs.GetBuildDefinitionJobTargetExecutionOptionResult'],
|
4685
|
+
type: str):
|
4686
|
+
"""
|
4687
|
+
:param Sequence[str] demands: A list of demands that represents the agent capabilities required by this build. Example: `git`
|
4688
|
+
:param Sequence['GetBuildDefinitionJobTargetExecutionOptionArgs'] execution_options: A `execution_options` blocks as documented below.
|
4689
|
+
:param str type: The execution type of the Job.
|
4690
|
+
"""
|
4691
|
+
pulumi.set(__self__, "demands", demands)
|
4692
|
+
pulumi.set(__self__, "execution_options", execution_options)
|
4693
|
+
pulumi.set(__self__, "type", type)
|
4694
|
+
|
4695
|
+
@property
|
4696
|
+
@pulumi.getter
|
4697
|
+
def demands(self) -> Sequence[str]:
|
4698
|
+
"""
|
4699
|
+
A list of demands that represents the agent capabilities required by this build. Example: `git`
|
4700
|
+
"""
|
4701
|
+
return pulumi.get(self, "demands")
|
4702
|
+
|
4703
|
+
@property
|
4704
|
+
@pulumi.getter(name="executionOptions")
|
4705
|
+
def execution_options(self) -> Sequence['outputs.GetBuildDefinitionJobTargetExecutionOptionResult']:
|
4706
|
+
"""
|
4707
|
+
A `execution_options` blocks as documented below.
|
4708
|
+
"""
|
4709
|
+
return pulumi.get(self, "execution_options")
|
4710
|
+
|
4711
|
+
@property
|
4712
|
+
@pulumi.getter
|
4713
|
+
def type(self) -> str:
|
4714
|
+
"""
|
4715
|
+
The execution type of the Job.
|
4716
|
+
"""
|
4717
|
+
return pulumi.get(self, "type")
|
4718
|
+
|
4719
|
+
|
4720
|
+
@pulumi.output_type
|
4721
|
+
class GetBuildDefinitionJobTargetExecutionOptionResult(dict):
|
4722
|
+
def __init__(__self__, *,
|
4723
|
+
continue_on_error: bool,
|
4724
|
+
max_concurrency: int,
|
4725
|
+
multipliers: str,
|
4726
|
+
type: str):
|
4727
|
+
"""
|
4728
|
+
:param bool continue_on_error: Whether to continue the job when an error occurs.
|
4729
|
+
:param int max_concurrency: Limit the number of agents to be used. If job type is `AgentlessJob`, the concurrency is not configurable and is fixed to 50.
|
4730
|
+
:param str multipliers: A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables.
|
4731
|
+
:param str type: The execution type of the Job.
|
4732
|
+
"""
|
4733
|
+
pulumi.set(__self__, "continue_on_error", continue_on_error)
|
4734
|
+
pulumi.set(__self__, "max_concurrency", max_concurrency)
|
4735
|
+
pulumi.set(__self__, "multipliers", multipliers)
|
4736
|
+
pulumi.set(__self__, "type", type)
|
4737
|
+
|
4738
|
+
@property
|
4739
|
+
@pulumi.getter(name="continueOnError")
|
4740
|
+
def continue_on_error(self) -> bool:
|
4741
|
+
"""
|
4742
|
+
Whether to continue the job when an error occurs.
|
4743
|
+
"""
|
4744
|
+
return pulumi.get(self, "continue_on_error")
|
4745
|
+
|
4746
|
+
@property
|
4747
|
+
@pulumi.getter(name="maxConcurrency")
|
4748
|
+
def max_concurrency(self) -> int:
|
4749
|
+
"""
|
4750
|
+
Limit the number of agents to be used. If job type is `AgentlessJob`, the concurrency is not configurable and is fixed to 50.
|
4751
|
+
"""
|
4752
|
+
return pulumi.get(self, "max_concurrency")
|
4753
|
+
|
4754
|
+
@property
|
4755
|
+
@pulumi.getter
|
4756
|
+
def multipliers(self) -> str:
|
4757
|
+
"""
|
4758
|
+
A list of comma separated configuration variables to use. These are defined on the Variables tab. For example, OperatingSystem, Browser will run the tasks for both variables.
|
4759
|
+
"""
|
4760
|
+
return pulumi.get(self, "multipliers")
|
4761
|
+
|
4762
|
+
@property
|
4763
|
+
@pulumi.getter
|
4764
|
+
def type(self) -> str:
|
4765
|
+
"""
|
4766
|
+
The execution type of the Job.
|
4767
|
+
"""
|
4768
|
+
return pulumi.get(self, "type")
|
4769
|
+
|
4770
|
+
|
4250
4771
|
@pulumi.output_type
|
4251
4772
|
class GetBuildDefinitionPullRequestTriggerResult(dict):
|
4252
4773
|
def __init__(__self__, *,
|
@@ -4445,6 +4966,7 @@ class GetBuildDefinitionRepositoryResult(dict):
|
|
4445
4966
|
repo_type: str,
|
4446
4967
|
report_build_status: bool,
|
4447
4968
|
service_connection_id: str,
|
4969
|
+
url: str,
|
4448
4970
|
yml_path: str):
|
4449
4971
|
"""
|
4450
4972
|
:param str branch_name: The branch name for which builds are triggered.
|
@@ -4461,6 +4983,7 @@ class GetBuildDefinitionRepositoryResult(dict):
|
|
4461
4983
|
pulumi.set(__self__, "repo_type", repo_type)
|
4462
4984
|
pulumi.set(__self__, "report_build_status", report_build_status)
|
4463
4985
|
pulumi.set(__self__, "service_connection_id", service_connection_id)
|
4986
|
+
pulumi.set(__self__, "url", url)
|
4464
4987
|
pulumi.set(__self__, "yml_path", yml_path)
|
4465
4988
|
|
4466
4989
|
@property
|
@@ -4511,6 +5034,11 @@ class GetBuildDefinitionRepositoryResult(dict):
|
|
4511
5034
|
"""
|
4512
5035
|
return pulumi.get(self, "service_connection_id")
|
4513
5036
|
|
5037
|
+
@property
|
5038
|
+
@pulumi.getter
|
5039
|
+
def url(self) -> str:
|
5040
|
+
return pulumi.get(self, "url")
|
5041
|
+
|
4514
5042
|
@property
|
4515
5043
|
@pulumi.getter(name="ymlPath")
|
4516
5044
|
def yml_path(self) -> str:
|