-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate folder data source to Framework
- Loading branch information
Showing
6 changed files
with
136 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
# jenkins_folder Data Source | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "jenkins_folder Data Source - terraform-provider-jenkins" | ||
subcategory: "" | ||
description: |- | ||
Get the attributes of a folder within Jenkins. | ||
~> The Jenkins installation that uses this resource is expected to have the Cloudbees Folders Plugin https://plugins.jenkins.io/cloudbees-folder installed in their system. | ||
--- | ||
|
||
# jenkins_folder (Data Source) | ||
|
||
Get the attributes of a folder within Jenkins. | ||
|
||
~> The Jenkins installation that uses this resource is expected to have the [Cloudbees Folders Plugin](https://plugins.jenkins.io/cloudbees-folder) installed in their system. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
```terraform | ||
data "jenkins_folder" "example" { | ||
name = "folder-name" | ||
name = "folder-name" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
The following arguments are supported: | ||
### Required | ||
|
||
* `name` - (Required) The name of the folder being read. | ||
* `folder` - (Optional) The folder namespace containing this folder. | ||
- `name` (String) The name of the resource being read. | ||
|
||
### Optional | ||
|
||
## Attribute Reference | ||
- `folder` (String) The folder namespace containing this resource. | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
### Read-Only | ||
|
||
* `id` - The full canonical folder path, E.G. `/job/parent`. | ||
* `description` - A block of text describing the folder's purpose. | ||
* `display_name` - The name of the folder that is displayed in the UI. | ||
* `template` - A Jenkins-compatible XML template to describe the folder. | ||
- `description` (String) The description of this folder's purpose. | ||
- `display_name` (String) The name of the folder to display in the UI. | ||
- `id` (String) The full canonical job path, e.g. `/job/job-name` | ||
- `template` (String) The configuration file template, used to communicate with Jenkins. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "jenkins_folder" "example" { | ||
name = "folder-name" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.