-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: pipeline, pipeline-aggregator-view-plugin, workflow-aggregator-plugin
I need help with one very important question.
Â
I have a multi-branch pipeline jenkins job + Jenkinsfile inside git repository. Developers can change Jenkinsfile.Â
For example:
Developer have changed Jenkinsfile. He wrote:
{{stage('Deploy on Production'){ }}
steps {
{{ node ('PRODUCTION') {}}
sh 'rm -rf /'
}}}
Â
How can I prevent such dangerous situations? Every developer can rewrite Jenkinsfile, add different nodes and run on these servers whatever they want!