Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (26 loc) · 1.64 KB

managedScripts.md

File metadata and controls

39 lines (26 loc) · 1.64 KB

managedScripts

The managedScripts allows you to execute managed scripts that are provided by

  • The ConfigFileProvider plugin or
  • as pipeline resource

Table of contents

execJenkinsShellScript(String scriptId, CommandBuilder commandBuilder null, returnStdout = false, returnStatus = false)

This step will execute the Jenkins script with the id scriptId. The shell command is build using the provided command builder.

If you want to get the stdout from the execution set returnStdout to true. If the status code is needed set returnStatus to true.

❗ You can only set returnStdout or returnStatus. If both are set the returnStdout setting will be used.

execPipelineShellScript(String scriptPath, CommandBuilder commandBuilder null, returnStdout = false, returnStatus = false)

This step will execute a managed shell script from the pipeline-library with path scriptPath. The shell command is build using the provided command builder.

If you want to get the stdout from the execution set returnStdout to true. If the status code is needed set returnStatus to true.

❗ You can only set returnStdout or returnStatus. If both are set the returnStdout setting will be used.

Related classes