Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Jenkins extension no longer working with jobs in folders

    Scheduled Pinned Locked Moved Support
    buildmasterjenkins
    5 Posts 2 Posters 26 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jstarbird_7831
      last edited by

      I'm not sure when this stopped working as I didn't hit until I went back to an older app that uses it but it used to work.
      However, I also am working on a new project which is using multi-branch building on Jenkins which also uses folders that represent the branch names as the job names and the Jenkins extension for BuildMaster cannot find the jobs.

      In jenkins the path to the job taking the URL is "https://buildserver/job/project/job/jobname/" so in BuildMaster this was set as project/job/jobname which used to work but now does not.
      I've tried using just the project and also tried how Jenkins has it in the JOB_NAME variable in Jenkins, project\jobname , but those do not work either.

      Just wanted to check if this is indeed a bug or just a format change? If a format change could you please let me know what that new format should be.

      Additional info:
      Jenkins - 2.138.2
      BuildMaster Jenkins extension - 1.0.1

      Product: BuildMaster
      Version: 6.0.10

      1 Reply Last reply Reply Quote 0
      • benB Offline
        ben inedo-engineer
        last edited by

        Hello Jon,

        project/job/jobname should still work.

        It appears that the code to wait for a build to finish is getting stuck:

        Queueing build in Jenkins...
        Creating HttpClient with username ben...
        Retrieving CSRF protection header value...
        Posting to http://jenkins:8080/job/project/job/jobs/build...
        Jenkins build queued successfully.
        Queue item number: 1
        Creating HttpClient with username ben...
        Retrieving CSRF protection header value...
        Waiting for build to start... (In the quiet period. Expires in 2.8 sec)
        Creating HttpClient with username ben...
        Retrieving CSRF protection header value...
        Waiting for build to start... (In the quiet period. Expires in 0.62 sec)
        Creating HttpClient with username ben...
        Retrieving CSRF protection header value...
        Waiting for build to start... (???)
        Creating HttpClient with username ben...
        Retrieving CSRF protection header value...
        Creating HttpClient with username ben...
        Retrieving CSRF protection header value...
        Waiting for build to start... ()
        Creating HttpClient with username ben...
        Retrieving CSRF protection header value...
        Creating HttpClient with username ben...
        Retrieving CSRF protection header value...
        

        I'll try to find the root cause of this.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jstarbird_7831
          last edited by

          Ben,
          When I'm doing this there is no build going on. I do not have BM call Jenkins to launch a build but rather have Jenkins build and call BM to deploy. I have Jenkins calling over to BM to import a build. When I do that I am passing the build number and project name but BM cannot find the job.
          I've also tried this manually from BM by Create Package and filling out the package variables.

          Thanks,
          jon

          1 Reply Last reply Reply Quote 0
          • benB Offline
            ben inedo-engineer
            last edited by

            Hello Jon,

            I've released version 1.0.2 of the Jenkins plugin to fix the build never being found, and it appears to work properly with importing assets as well.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jstarbird_7831
              last edited by

              Thanks, it is working now.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation