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

Getting "No Such Job" Error while accessing the jobs through jenkins-cli.jar

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core

      Currently we are using Cloudbees Jenkins Enterprise [Jenkins ver. 2.7.20.0.2 (CloudBees Jenkins Enterprise 2.7.20.0.2-fixed) in our Project.

      We used to update Build Description automatically by parsing log using Python and used jenkins-cli.jar [version=2.7.20]  for updating description in each builds using "set-build-description" parameter.

      Jenkins folder structure will be like Project Code–> Projects.

      Eg: TGM0 is root folder and inside that we have Projects as sub folders as shown below

      list-jobs --> list all root folders as shown below,

      But when we try to execute the below command we're getting error as "no job found"

      java -jar C:\apps\jenkins-cli.jar -s http://jenkins.fg.rbc.com/ set-build-description DAILY_PERFORMANCE 62 = --username hramkuma --password ** 0<"F:\Jenkins\workspace\TGM0\DAILY_PERFORMANCE\results\Performance_Daily\builddesc.txt" 

      But the job "Daily Performance" exists in TGM0 folder,

      Kindly provide a solution for this.

          [JENKINS-43346] Getting "No Such Job" Error while accessing the jobs through jenkins-cli.jar

          Ramkumar Haridass created issue -

          Oleg Nenashev added a comment -

          From what I see your job is located in the folder, hence this folder should be specified in the request. Try specifying "TGM0/DAILY_PERFORMANCE" in the command line.

          Oleg Nenashev added a comment - From what I see your job is located in the folder, hence this folder should be specified in the request. Try specifying "TGM0/DAILY_PERFORMANCE" in the command line.
          Ramkumar Haridass made changes -
          Attachment New: image-2017-04-04-14-26-57-613.png [ 36874 ]
          Ramkumar Haridass made changes -
          Attachment New: image-2017-04-04-14-27-25-390.png [ 36875 ]

          I already tried that, but still, same error,

          Ramkumar Haridass added a comment - I already tried that, but still, same error,
          Ramkumar Haridass made changes -
          Attachment New: image-2017-04-04-14-30-03-910.png [ 36876 ]

          I tried removing Root folder name from url as well,

          Ramkumar Haridass added a comment - I tried removing Root folder name from url as well,
          Oleg Nenashev made changes -
          Component/s Original: description-setter-plugin [ 15536 ]

          Oleg Nenashev added a comment -

          Likely just a lack of permissions due to whatever reason. Since you use CloudBees Jenkins Enterprise, please contact their support

          Oleg Nenashev added a comment - Likely just a lack of permissions due to whatever reason. Since you use CloudBees Jenkins Enterprise, please contact their support

          I am able to reproduce this problem in 2.60.1.1

          Félix Belzunce Arcos added a comment - I am able to reproduce this problem in 2.60.1.1

            fbelzunc Félix Belzunce Arcos
            ramkumar_haridass Ramkumar Haridass
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: