0

I have such simple playbook:

- hosts: 123.123.123.123
  tasks:
          - name: Jenkins - add job
            jenkins_job:
                    config: "{{ lookup('file', 'jenkins_conf/pipeline_staging.xml') }}"
                    name: deploy-staging
                    password: XXXXX
                    url: http://10.12.0.5:8080
                    user: someuser

When i will start it on Jenkins normally installed on server it is working. But when i'll try to connect to Jenkins installed in docker/kubernetes environment on GKE it is failing with:

FAILED! => {"changed": false, "failed": true, "msg": "Unable to validate if job exists, HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop.\nThe last 30x error message was:\nFound for http://10.12.0.5:8080"}

Here can be find some more details: Ansible - jenkins plugin failing on Google Container Engine (GKE) - infinite loop with ingress

I thought it could be because of my ingress/LB configuration but after i test it with remote execution with direct connection to Jenkins node im still getting infinite-loop error. What am i doing wrong?

user3069488
  • 159
  • 2
  • 3
  • 18

0 Answers0