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

urltrigger must support credentials plugin for basic authentication

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • urltrigger-plugin
    • None
    • jenkins 2.504.1

      We are trying to use  https://plugins.jenkins.io/urltrigger/ together with artifactory. The credntial for artifcatory must not be known to the person configuring the job in github. Currently we need add the entry like, 

       

       URLTrigger( 
                  cronTabSpec: '* * * * *',
                  entries: [
                      URLTriggerEntry( 
                          url: 'http://www.mysite.com/jsoncontent',
                          username: 'myuser',
                          password: 'mypassword',
                          checkETag: false,
                          checkStatus: true,
                          statusCode: 403,
                          checkLastModificationDate: true,
                          timeout: 200,
                          requestHeaders: [
                              RequestHeader( headerName: "Accept" , headerValue: "application/json" )
                          ],
                          contentTypes: [
                              JsonContent(
                                  [
                                      JsonContentEntry( jsonPath: 'level1.level2.level3' )
                                  ])
                          ]
                      ), 

       

       

        which can leak such information. please add support to use credentials plugin in urltrigger.

            gbois Gregory Boissinot
            krishgcek Krishnan PR
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: