Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class BashWrapperBuilder {
private BashTemplateEngine engine = new BashTemplateEngine()

BashWrapperBuilder( TaskRun task ) {
this(new TaskBean(task))
this(task.toTaskBean())
}

BashWrapperBuilder( TaskBean bean, ScriptFileCopyStrategy strategy = null ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ class TaskBean implements Serializable, Cloneable {
}

TaskBean(TaskRun task) {
this(task, false)
}

TaskBean(TaskRun task, boolean stubRun) {

this.name = task.name

Expand Down Expand Up @@ -154,9 +158,10 @@ class TaskBean implements Serializable, Cloneable {
this.containerEnabled = task.isContainerEnabled()
this.containerOptions = task.config.getContainerOptions()
this.containerPlatform = task.getContainerPlatform()

// secret management
this.secretNative = task.isSecretNative()
this.secretNames = task.config.getSecret()
this.secretNames = stubRun ? task.config.getSecret() : null

// stats
this.outputEnvNames = task.getOutputEnvNames()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ class TaskRun implements Cloneable {
}

TaskBean toTaskBean() {
return new TaskBean(this)
return new TaskBean(this, processor.session.stubRun)
}

CondaConfig getCondaConfig() {
Expand Down
Loading