Closed sparshev closed 4 years ago
@yamsivakumarreddy, please don't post the offtopic questions. Answer on your question is simple - MPLModule supports OUT interface, please check README doc here and this question: #66
Hi @sparshev I am getting the below error when I use OUT in checkout.groovy
groovy.lang.MissingPropertyException: No such property: OUT for class: groovy.lang.Binding
-->checkout.groovy def version = MPLModule('Default Checkout').'artifact.version' echo "${version}" OUT.'artifact_info.artifact.version' = version --> defaultcheckout.groovy gitInfo = checkout scm OUT.'artifact.version' = 1 --> pipeline stage( 'Checkout' ) { when { expression { MPLModuleEnabled() } } steps { echo "in checkout step" MPLPipelineConfigMerge(MPLModule('Checkout').artifact_info) } }
What the version of MPL you're using? OUT was added to master branch in the PR #46
Hopefully the question was answered.
@sparshev thanks for your patience, it worked very well :) I upgraded from jenkins shared libraries to MPL.
Hi, I started using the libraries, But If I want some variables from one stage to another stage How can it be done?
Originally posted by @yamsivakumarreddy in https://github.com/griddynamics/mpl/issues/58#issuecomment-617623927