2021-11-19 11:05:39 +02:00
metadata :
name : shellExecute
description : Step executes defined script
2022-03-31 18:18:20 +02:00
longDescription : Step executes defined script provided in the 'sources' parameter
2021-11-19 11:05:39 +02:00
spec :
inputs :
2022-03-31 18:18:20 +02:00
secrets :
- name : githubTokenCredentialsId
description : Jenkins credentials ID containing the github token.
type : jenkins
2021-11-19 11:05:39 +02:00
params :
- name : sources
type : "[]string"
scope :
- PARAMETERS
- STAGES
- STEPS
2022-03-31 18:18:20 +02:00
description : Scripts paths that must be present in the current workspace or https links to scripts.
Only https urls from github are allowed and must be in the format :https://{githubBaseurl}/api/v3/repos/{owner}/{repository}/contents/{path to script}
Authentication for the download is only supported via the 'githubToken' param. Make sure the script has the necessary execute permissions.
- name : githubToken
description : "GitHub personal access token as per
https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line"
scope :
- GENERAL
- PARAMETERS
- STAGES
- STEPS
type : string
secret : true
aliases :
- name : access_token
resourceRef :
- name : githubTokenCredentialsId
type : secret
- type : vaultSecret
default : github
name : githubVaultSecretName
2022-06-10 16:10:46 +02:00
- name : scriptArguments
type : "[]string"
scope :
- PARAMETERS
- STAGES
- STEPS
description : scriptArguments that are needed to be passed to scripts. the scriptArguments list is a flat list and has a positional relationship to the `sources` param.
For e.g. The scriptArguments string at position 1 will be considered as the argument(s) for script at position 1 in `sources` list
mandatory : false
2021-12-13 13:31:31 +02:00
containers :
- name : shell
image : node:lts-stretch
workingDir : /home/node