In case someone makes a bad PR with changes to the Jenkinsfile, like dumping our credentials or such, we'd like to always use the Jenkinsfile from master.
However, there are cases where changes to Jenkinsfile should be allowed, so we should have a way of overriding this as well, if you have the right permissions.
Acceptance Criteria
[x] When anyone makes a PR, Jenkins uses the Jenkinsfile from master instead from PR
[x] When a trusted user makes a PR, Jenkins uses the Jenkinsfile from the branch of the PR
In case someone makes a bad PR with changes to the Jenkinsfile, like dumping our credentials or such, we'd like to always use the Jenkinsfile from master.
However, there are cases where changes to Jenkinsfile should be allowed, so we should have a way of overriding this as well, if you have the right permissions.
Acceptance Criteria
Tasks