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

Null pointer exception when trying to use build-token-root

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Not A Defect
    • None
    • redhat linux 6, running under tomcat

    Description

      I am new to jenkins and trying to test the "trigger build remotely" feature for some of our jobs. Upon further research I found that I need to use this plugin in order to have "Anonymous" kick off the build.

      We are using LDAP authentication via Atlassian crowd for our regular users.

      After installing the plugin I created a simple job that only has an "execute shell" build step that has a simple "echo 'test succesful'" inside it.

      I use the url https://servername.domainname.com/ops-deploy/buildbyToken/build?jobname=joshtest&token=test

      This results in a nullpointer exception. I've verified that the anonymous user has read and build permissions.

      I'm trying to access it via the following manner (the --insecure is to ignore the self signed certificate)

      curl -i --insecure 'https://servername.domainname.com/ops-deploy/buildByToken/build?jobname=joshtest&token=test'

      Attachments

        Activity

          joshlove Josh Love created issue -
          joshlove Josh Love made changes -
          Field Original Value New Value
          Description I am new to jenkins and trying to test the "trigger build remotely" feature for some of our jobs. Upon further research I found that I need to use this plugin in order to have "Anonymous" kick off the build.

          We are using LDAP authentication via Atlassian crowd for our regular users.

          After installing the plugin I created a simple job that only has an "execute shell" build step that has a simple "echo 'test succesful'" inside it.

          I use the url https://servername.domainname.com/ops-deploy/buildbyToken/build?jobname=joshtest/

          This results in a nullpointer exception. I've verified that the anonymous user has read and build (just.

          I'm trying to access it via the following manner (the --insecure is to ignore the self signed certificate)

          curl -i --insecure 'https://servername.domainname.com/ops-deploy/buildByToken/build?jobname=joshtest'

          I am new to jenkins and trying to test the "trigger build remotely" feature for some of our jobs. Upon further research I found that I need to use this plugin in order to have "Anonymous" kick off the build.

          We are using LDAP authentication via Atlassian crowd for our regular users.

          After installing the plugin I created a simple job that only has an "execute shell" build step that has a simple "echo 'test succesful'" inside it.

          I use the url https://servername.domainname.com/ops-deploy/buildbyToken/build?jobname=joshtest/

          This results in a nullpointer exception. I've verified that the anonymous user has read and build permissions.

          I'm trying to access it via the following manner (the --insecure is to ignore the self signed certificate)

          curl -i --insecure 'https://servername.domainname.com/ops-deploy/buildByToken/build?jobname=joshtest'

          joshlove Josh Love made changes -
          Description I am new to jenkins and trying to test the "trigger build remotely" feature for some of our jobs. Upon further research I found that I need to use this plugin in order to have "Anonymous" kick off the build.

          We are using LDAP authentication via Atlassian crowd for our regular users.

          After installing the plugin I created a simple job that only has an "execute shell" build step that has a simple "echo 'test succesful'" inside it.

          I use the url https://servername.domainname.com/ops-deploy/buildbyToken/build?jobname=joshtest/

          This results in a nullpointer exception. I've verified that the anonymous user has read and build permissions.

          I'm trying to access it via the following manner (the --insecure is to ignore the self signed certificate)

          curl -i --insecure 'https://servername.domainname.com/ops-deploy/buildByToken/build?jobname=joshtest'

          I am new to jenkins and trying to test the "trigger build remotely" feature for some of our jobs. Upon further research I found that I need to use this plugin in order to have "Anonymous" kick off the build.

          We are using LDAP authentication via Atlassian crowd for our regular users.

          After installing the plugin I created a simple job that only has an "execute shell" build step that has a simple "echo 'test succesful'" inside it.

          I use the url https://servername.domainname.com/ops-deploy/buildbyToken/build?jobname=joshtest&token=test

          This results in a nullpointer exception. I've verified that the anonymous user has read and build permissions.

          I'm trying to access it via the following manner (the --insecure is to ignore the self signed certificate)

          curl -i --insecure 'https://servername.domainname.com/ops-deploy/buildByToken/build?jobname=joshtest&token=test'

          joshlove Josh Love added a comment -

          it's just job - not jobname like I saw on some examples online it seems. Sorry!

          joshlove Josh Love added a comment - it's just job - not jobname like I saw on some examples online it seems. Sorry!
          joshlove Josh Love made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          jglick Jesse Glick made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          jglick Jesse Glick made changes -
          Resolution Not A Defect [ 7 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 150081 ] JNJira + In-Review [ 193415 ]

          People

            jglick Jesse Glick
            joshlove Josh Love
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: