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

workflow-basic-steps does not support current LTS version.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Labels:
      None
    • Environment:
      Jenkins LTS 2.249.3
      workflow-basic-steps-plugin 2.23
    • Similar Issues:

      Description

      Latest version of workflow-basic-steps-plugin has removed support for Jenkins versions older than 2.263. This includes the current LTS version: 2.249.3.

      The plugin should continue to support the current LTS version until it is replaced.

        Attachments

          Activity

          Hide
          timja Tim Jacomb added a comment -

          Yes it's stable, someone asked for it to be marked as preview initially.

          It's been running in there for 3 months and used by many people.

          The install-plugins.sh script is now deprecated in favour of it:
          https://github.com/jenkinsci/docker/blob/master/install-plugins.sh#L23

          > We have pinned the version as a workaround to get our build working. Will a pin of workflow-basic-steps:2.22 match fixes released as 2.22.x?

          no it's exact match only

          Show
          timja Tim Jacomb added a comment - Yes it's stable, someone asked for it to be marked as preview initially. It's been running in there for 3 months and used by many people. The install-plugins.sh script is now deprecated in favour of it: https://github.com/jenkinsci/docker/blob/master/install-plugins.sh#L23 > We have pinned the version as a workaround to get our build working. Will a pin of workflow-basic-steps:2.22 match fixes released as 2.22.x? no it's exact match only
          Hide
          nzdjb Dave Ball added a comment -

          Thanks for the clarification. I saw the deprecation status, which didn't seem to align with the replacement being marked as preview. Happy to hear it's stable.

          When you say that jenkins-plugin-cli checks compatibility, what is the behaviour if it's asked to install workflow-basic-steps:latest? Will it attempt to install the 2.23 and throw an error, not install the plugin, or find the latest compatible plugin and install that?

          Show
          nzdjb Dave Ball added a comment - Thanks for the clarification. I saw the deprecation status, which didn't seem to align with the replacement being marked as preview. Happy to hear it's stable. When you say that jenkins-plugin-cli checks compatibility, what is the behaviour if it's asked to install workflow-basic-steps:latest? Will it attempt to install the 2.23 and throw an error, not install the plugin, or find the latest compatible plugin and install that?
          Hide
          timja Tim Jacomb added a comment -

          It uses a version specific update site documented here: https://updates.jenkins.io/#version-specific-update-sites

          and will only offer compatible versions

          Show
          timja Tim Jacomb added a comment - It uses a version specific update site documented here: https://updates.jenkins.io/#version-specific-update-sites and will only offer compatible versions
          Hide
          nzdjb Dave Ball added a comment -

          Fantastic, that will work for us. Thanks for your time and patience.

          Show
          nzdjb Dave Ball added a comment - Fantastic, that will work for us. Thanks for your time and patience.
          Hide
          frankrellis Frank added a comment - - edited

          Dave Ball I know this is marked as fixed, but I wanted to mention that this is sort of true. Tim Jacomb the current LTS image, as of today (sha256:ae4797bb5657c4e923b14928d7529cb4bbd05935b09f89eee7649a7d66a3d94d) has version 2.2.0 of the jenkins-plugin-cli (https://github.com/jenkinsci/plugin-installation-manager-tool) installed. This version seems to have a bug that allows it to select invalid versions of plugins that don't reflect the jenkins-version-specific update sites. It looks like if you replace the bundled jar file (in the LTS image @ /usr/lib/jenkins-plugin-manager.jar) with one that is current (2.5.0), then the plugins are versioned based on the current jenkins version correctly (and consequently doesn't pull v 2.23 of the workflow-basic-steps plugin).

          I just stumbled through this myself (as we use the LTS docker image as an upstream). Hope this helps.

          It also looks like the plugin bug itself is referenced in JENKINS-63941 (aside from the fact that it shouldn't appear in version specific update centers)

          Edit: I lied, because the metadata even for version specific update centers isn't correct for v2.23 of this plugin, it's broken. This should probably be re-opened and tagged linked to JENKINS-63941

          Show
          frankrellis Frank added a comment - - edited Dave Ball I know this is marked as fixed, but I wanted to mention that this is sort of true. Tim Jacomb  the current LTS image, as of today (sha256:ae4797bb5657c4e923b14928d7529cb4bbd05935b09f89eee7649a7d66a3d94d) has version 2.2.0 of the jenkins-plugin-cli ( https://github.com/jenkinsci/plugin-installation-manager-tool)  installed. This version seems to have a bug that allows it to select invalid versions of plugins that don't reflect the jenkins-version-specific update sites. It looks like if you replace the bundled jar file (in the LTS image @ /usr/lib/jenkins-plugin-manager.jar) with one that is current (2.5.0), then the plugins are versioned based on the current jenkins version correctly (and consequently doesn't pull v 2.23 of the workflow-basic-steps plugin). I just stumbled through this myself (as we use the LTS docker image as an upstream). Hope this helps. It also looks like the plugin bug itself is referenced in  JENKINS-63941 (aside from the fact that it shouldn't appear in version specific update centers) Edit: I lied, because the metadata even for version specific update centers isn't correct for v2.23 of this plugin, it's broken. This should probably be re-opened and tagged linked to  JENKINS-63941

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nzdjb Dave Ball
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: