jenkinsci / jenkinsci/authorize-project-plugin

[JENKINS-50101] Support for declarative pipeline

Open
#433 1 comment 0 reactions 0 assignees View on GitHub
component:authorize-project-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
18
Forks
40
PR merge metrics
No merged PRs in 30d

Description

It would be great if there was support for the Declarative Pipeline syntax. Something like the following:

pipeline {

agent any
options {
authorizeProject(specificUsersAuthorizationStrategy(userid: 'admin', dontRestrictJobConfiguration: false))
}
stages {
stage('Example') {
steps {
echo 'Hello World'
}
}
}
}

---
Originally reported by allan_burdajewicz, imported from: Support for declarative pipeline


  • assignee: allan_burdajewicz
  • status: In Review
  • priority: Major
  • component(s): authorize-project-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 5
  • imported: 20260312-112651

Raw content of original issue

It would be great if there was support for the Declarative Pipeline syntax. Something like the following:


pipeline {

agent any
options {
authorizeProject(specificUsersAuthorizationStrategy(userid: 'admin', dontRestrictJobConfiguration: false))
}
stages {
stage('Example') {
steps {
echo 'Hello World'
}
}
}
}

  • environment: authorize-project:1.3.0

Contributor guide

Open the contributing guide

Research direction

Start with the authorize-project-plugin context and the Declarative Pipeline example in the issue. No source files, tests, or entry points are identified, so the implementation scope and validation path need to be established first. Done means the shown pipeline syntax is supported and verified by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authorization, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.