Unable to use jdk11 for plugin build

Hello
I’m trying to have a plugin build using jdk-11 with the jenkins-infra/pipeline-library.
But whatever I set, it is always the jdk-8 that is picked up
Jenkins builds => PR#17 & PR#18

Configuration tested

buildPlugin(
        useContainerAgent: true,
        configurations: [
                [platform: 'linux', jdk: 11],
                [platform: 'windows', jdk: 11]
        ])

and

buildPlugin(
        useContainerAgent: true,
        platforms: ['linux', 'windows'],
        jdkVersions: [11]
)

What am I missing ?

That’s a security feature. Only plugin maintainers are allowed to modify the Jenkinsfile in a pull request.

Without that security, a malicious actor could submit a pull request that misuses the resources of the Jenkins project.

I used my ci.jenkins.io admin permissions to run the Jenkinsfile in a PR-18 build.

Without that security, a malicious actor could submit a pull request that misuses the resources of the Jenkins project.

ha, I see. That a good idea indeed

I used my ci.jenkins.io admin permissions to run the Jenkinsfile in a PR-18 build.

Thank you :slight_smile: