-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add gitlab_pipeline_schedule resource #116
add gitlab_pipeline_schedule resource #116
Conversation
|
||
* `ref` - (Required, string) The branch/tag name will be triggered. | ||
|
||
* `cron` - (Required, string) The cron (e.g. 0 1 * * *). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please put the con example as code
|
||
* `description` - (Required, string) The description of the pipeline schedule. | ||
|
||
* `ref` - (Required, string) The branch/tag name will be triggered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/will be/ to be/
|
||
# gitlab\_pipeline\_schedule | ||
|
||
This resource allows you to create and manage pipeline schedules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- maybe a link to upstream doc?
- missing dot at the end of the sentence
tests are failing |
0.16.1 is merged |
613ac20
to
c76edba
Compare
I have made the requested changes. Please note the tests are going to be failing until go-gitlab has been updated. The linked PR has been merged, but no release containing it has been made yet. I am happy to make a PR pulling the latest revision for go-gitlab in a separate PR, or would you rather wait for the next release of go-gitlab, @roidelapluie ? |
lets wait for release of go-gitlab |
6ac369b
to
78a04db
Compare
@roidelapluie the build now succeeds. |
|
||
pipelineSchedules, response, err := client.PipelineSchedules.ListPipelineSchedules(project, nil) | ||
if err != nil { | ||
if response.StatusCode == 404 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this
78a04db
to
9e711ec
Compare
Signed-off-by: Julien Pivotto <[email protected]>
9e711ec
to
64f4139
Compare
This PR implements a new resource
gitlab_pipeline_schedule
.This depends on a fix in
go-gitlab
: xanzy/go-gitlab#607. Without this, the delete resource will always result in an error and Terraform will fail, even though the resource is deleted within Gitlab.So I guess WIP until the above mentioned PR gets merged and
go-gitlab
gets updated in this project.