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

Forcing updates, determining when last update was performed #20

Closed
blalor opened this issue Jan 11, 2017 · 3 comments
Closed

Forcing updates, determining when last update was performed #20

blalor opened this issue Jan 11, 2017 · 3 comments

Comments

@blalor
Copy link

blalor commented Jan 11, 2017

Is there a way to force the plugin to update the config on demand? It doesn't appear that https://api.gocd.io/current/#notify-git-materials is applicable, as the repositories aren't listed in the list of available materials.

Along those lines, it would be nice if the plugin indicated when it had last performed an update.

@tomzo
Copy link
Owner

tomzo commented Jan 11, 2017

It is possible to send POST for materials which are used in config repositories. I added that support in GoCD gocd/gocd#2193 few months ago and I use it on nearly all repos.

@blalor
Copy link
Author

blalor commented Jan 11, 2017

Ah, interesting. I tried that, but didn't see anything in the logs indicating that it'd had an affect. I'll poke at that some more.

@tomzo
Copy link
Owner

tomzo commented Jan 11, 2017

I have hooks on gitlab which trigger GoCD, URL for hook looks like this:

http://<user>:<password>@<gocd-host>/go/api/material/notify/git/?repository_url=<url-git>

And <url-git> is the same string which you put in config-repo section:

<config-repo plugin="yaml.config.plugin">
      <git url="<url-git>" />
    </config-repo>

I do not recall if this was supposed to generate some log message, it might have been on DEBUG level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants