Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-76101

Server URL not evaluating environment variable from CasC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None

      We upgraded from 936.4.4 to 937.0.1 and after upgrading we see that the Server URL field is being set to the literal reference to an environment variable we have in our CasC to configure this instead of the resolved value. Our configuration is
      bitbucketEndpointConfiguration:
          endpoints:
          - bitbucketServerEndpoint:
              displayName: "Bitbucket"
              serverURL: "${BITBUCKET_URL}"
              webhook:
                serverWebhook:
                  credentialsId: "bitbucket-credentials"
                  enableHookSignature: false
                  manageHooks: true

      And in the Jenkins UI we see this as the value

      Because of this, webhook calls were getting a 400 response from Jenkins because it did not detect a configuration matching our URL. We reset the value to the correct one but are planning to downgrade back to 936.4.4 to ensure we don't break again if we restart the controller.
       

            nfalco Nikolas Falco
            butter1484 Brady Shober
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: