Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to load pipeline input configuration from repo config file #42

Open
sparshev opened this issue Sep 25, 2019 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sparshev
Copy link
Collaborator

Execution of the Jenkinsfile from the repository could expose credentials to end-user (for example create custom pipeline with using credentials in test stage and echo those creds as base64-encoded to build console).

Probably the only way to control the scripted pipeline with repo configuration - is to read config file (json, yaml or configslurper for some dynamics) from the repo without access to the pipeline steps.

It could look like this: Job with pipeline script:

@Library('mpl') _
MPLStrict {
  git = [url, creds, ...] // repo configs
  pipeline = 'pipeline_name' // pipeline to execute, if not set - get it from the repo config
}

In this step it will load the config file, parse it, and execute the required pipeline.

As result we need a common interface for that in MPL to allow to fortify the pipeline.

@sparshev sparshev added enhancement New feature or request help wanted Extra attention is needed labels Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant