We have a build pipeline made out of GitLab, Jenkins 2 and Rancher. Our current issue is that we cannot trigger Rancher using the API from Jenkins, to pull the updated service from the registry (the Gitlab registry) and update it. Also, we need to do it in multiple stacks. We used the API to trigger complete environment upgrades, but that is not stable somehow, the services are not upgraded every time and the API is very fiddly. We tried upgrading each service, but then we have to set up Jenkins so it knows each of the services in all stacks. We tried with the
io.rancher.container.pull_image label, no luck. We tried with specifying the rancher-compose.yml with all kinds of parameters (although the .yml is poorly documented), also not much results.
So to sum up:
How to properly make Rancher pull and upgrade all of the services in the one stack through the API (we only managed to trigger the upgrade, not the pull)?
How to upgrade a service in multiple stack using the API?
We are not using any plugin for Rancher, since obviously it does not exist, only pure REST API calls.