jenkinsci / jenkinsci/authorize-project-plugin
[JENKINS-50101] Support for declarative pipeline
- 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
allan_burdajewicz
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
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