Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum Non-BOM Plugin Versions Recipe #1

Open
sghill opened this issue Jun 12, 2022 · 0 comments
Open

Minimum Non-BOM Plugin Versions Recipe #1

sghill opened this issue Jun 12, 2022 · 0 comments
Labels
recipe Requests for new automated code changes

Comments

@sghill
Copy link
Collaborator

sghill commented Jun 12, 2022

Non-BOM plugins, such as job-dsl, should have a way to specify a minimum version with a comment. This needs to work with property-driven versions as well.

Property-Driven Before:

<properties>
    <plugins.job-dsl.version>1.52</plugins.job-dsl.version>
</properties>
<dependencies>
    <dependency>
        <groupId>org.jenkins-ci.plugins</groupId>
        <artifactId>job-dsl</artifactId>
        <version>${plugins.job-dsl.version}</version>
        <optional>true</optional>
    </dependency>
</dependencies>

Property-Driven After:

<properties>
    <!-- <= 1.71 vulnerable: https://www.jenkins.io/security/advisory/2019-03-06/#SECURITY-1342 -->
    <plugins.job-dsl.version>1.72</plugins.job-dsl.version>
</properties>
<dependencies>
    <dependency>
        <groupId>org.jenkins-ci.plugins</groupId>
        <artifactId>job-dsl</artifactId>
        <version>${plugins.job-dsl.version}</version>
        <optional>true</optional>
    </dependency>
</dependencies>

Inline Before:

<dependencies>
    <dependency>
        <groupId>org.jenkins-ci.plugins</groupId>
        <artifactId>job-dsl</artifactId>
        <version>1.52</version>
        <optional>true</optional>
    </dependency>
</dependencies>

Inline After:

<dependencies>
    <dependency>
        <groupId>org.jenkins-ci.plugins</groupId>
        <artifactId>job-dsl</artifactId>
        <!-- <= 1.71 vulnerable: https://www.jenkins.io/security/advisory/2019-03-06/#SECURITY-1342 -->
        <version>1.72</version>
        <optional>true</optional>
    </dependency>
</dependencies>

For an example, see jenkinsci/applitools-eyes-plugin#9

@timtebeek timtebeek added the recipe Requests for new automated code changes label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Requests for new automated code changes
Projects
None yet
Development

No branches or pull requests

2 participants