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

Automated setup via CI server #29

Merged
merged 11 commits into from
Mar 25, 2021

Conversation

schnatterer
Copy link
Member

Improve usage of terraform and apply.sh for automated setup via CI-Server.

Minor changes to terraform.

  • Currently fails because Error: googleapi: Error 400: Master version "1.17.13-gke.2600" is unsupported., badRequest
  • credentials account.json is a fixed path, which is CI-unfriendly.

Changes to apply.sh

  • Jenkins REST client uses username + password instead of API token
  • --trace option
  • --username option

These should work much longer than pinned version, as the support windows for a pinned version seem to be rather short.
They changed since we started using SCMM folders.
Job is stuck. This should help to find out where.
Refactor to use password.
Why?
- In CES authorization seems not to work as expected. When calling with Token we get a 403. Same with username works. Must be some bug with Jenkins CAS plugin.
- It's simpler to implement with Username and PW
- We don't spam Jenkins with API-Tokens

While on it also
- removed redundancies
- fail on status codes >= 400
- Print status code on failure
@marekzan marekzan merged commit 6123185 into feature/external_scmm Mar 25, 2021
@marekzan marekzan deleted the feature/update-terraform branch March 25, 2021 10:48
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

Successfully merging this pull request may close these issues.

2 participants