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

Virtual modules #9

Open
sparshev opened this issue Jun 23, 2018 · 0 comments
Open

Virtual modules #9

sparshev opened this issue Jun 23, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sparshev
Copy link
Collaborator

Could be useful to simple test new modules functional, debugging or easy way to kickstart with the MPL.

// Defining virtual module
MPLVirtualModule('Build') {
  // Closure with all the features of usual module
  echo "Hihi, I'm the virtual module"
  MPLModule('Build', CFG) // Executing upper level Build module
}

pipeline {
  ...
  stages {
    stage( 'Build' ) {
      MPLModule() // will execute virtual module first
    }
    ...
  }
}
@sparshev sparshev added enhancement New feature or request help wanted Extra attention is needed labels Jun 23, 2018
@sparshev sparshev self-assigned this Jun 23, 2018
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