jenkins-library
jenkins-library copied to clipboard
dockerExecuteOnKubernetes ignores stashExcludes and stashIncludes parameter in code
Hello,
the command dockerExecuteOnKubernetes
ignores the parameter stashExcludes
and stashIncludes
if the parameters are
set at call in code.
E.g.
dockerExecuteOnKubernetes(script:this, dockerImage:'someImage',
stashExcludes:[workspace:'**' ,stashBack:''],
stashIncludes:[workspace:'foo', stashBack:'bar']
) {...}
but it use */**
that are set as default in the default_pipeline_environment.yml
i can see in the dockerExecuteOnKubernetes that the parameters are removed from the config keys
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS.minus([
'stashIncludes',
'stashExcludes'
])
is that intended?
Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team
to your comment.
its not stale @SAP/jenkins-library-team
@OliverNocon any thoughts about this? Can we allow specifying them on parameter
level?
I know that this has been like that from the very beginning. I cannot judge the side-effects since this will be a rather incompatible change.
AFAIK dockerExecuteOnKubernetes
was never intended to be used directly but rather behind dockerExecute
in order to make pipelines run in either case (non-Kubernetes & Kubernetes)
My personal recommendation is to use the provided config option via config.yml
.
Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team
to your comment.
Issue got stale and no further activity happened. It has automatically been closed. Please re-open in case you still consider it relevant.