Skip to content
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

Merged
merged 2 commits into from Jun 11, 2019

Conversation

thojkooi
Copy link
Contributor

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.


* `ref` - (Required, string) The branch/tag name will be triggered.

* `cron` - (Required, string) The cron (e.g. 0 1 * * *).
Copy link
Collaborator

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.
Copy link
Collaborator

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
Copy link
Collaborator

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

@roidelapluie roidelapluie reopened this May 2, 2019
@roidelapluie
Copy link
Collaborator

tests are failing

@roidelapluie
Copy link
Collaborator

0.16.1 is merged

@roidelapluie roidelapluie reopened this May 2, 2019
@thojkooi thojkooi force-pushed the add-gitlab-pipeline-schedule branch 2 times, most recently from 613ac20 to c76edba Compare May 4, 2019 09:59
@thojkooi
Copy link
Contributor Author

thojkooi commented May 4, 2019

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 ?

@roidelapluie
Copy link
Collaborator

lets wait for release of go-gitlab

@thojkooi thojkooi force-pushed the add-gitlab-pipeline-schedule branch 2 times, most recently from 6ac369b to 78a04db Compare May 7, 2019 21:40
@thojkooi
Copy link
Contributor Author

thojkooi commented May 8, 2019

@roidelapluie the build now succeeds.


pipelineSchedules, response, err := client.PipelineSchedules.ListPipelineSchedules(project, nil)
if err != nil {
if response.StatusCode == 404 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this

@thojkooi thojkooi force-pushed the add-gitlab-pipeline-schedule branch from 78a04db to 9e711ec Compare June 10, 2019 09:09
thojkooi and others added 2 commits June 11, 2019 22:12
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
@roidelapluie roidelapluie merged commit 64f4139 into gitlabhq:master Jun 11, 2019
@thojkooi thojkooi deleted the add-gitlab-pipeline-schedule branch July 17, 2019 07:55
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants