Skip to content

Virtual modules #9

@sparshev

Description

@sparshev

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
    }
    ...
  }
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions