2019-12-05 15:22:38 +02:00
metadata :
name : xsDeploy
description : Performs xs deployment
longDescription : |
Performs xs deployment
spec :
inputs :
secrets :
2019-12-12 13:41:40 +02:00
- name : credentialsId
2020-09-23 13:22:51 +02:00
description : Jenkins 'Username with password' credentials ID containing username/password for accessing xs endpoint.
2019-12-05 15:22:38 +02:00
type : jenkins
params :
- name : deployOpts
type : string
description : Additional options appended to the deploy command. Only needed for sophisticated cases. When provided it is the duty of the provider to ensure proper quoting / escaping.
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2019-12-05 15:22:38 +02:00
default :
- name : operationIdLogPattern
type : string
description : Regex pattern for retrieving the ID of the operation from the xs log.
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2019-12-05 15:22:38 +02:00
default : ^.*xs bg-deploy -i (.*) -a.*$
aliases :
- name : deployIdLogPattern
- name : mtaPath
type : string
description : Path to deployable
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2019-12-05 15:22:38 +02:00
mandatory : true
2020-02-28 12:01:09 +02:00
resourceRef :
- name : commonPipelineEnvironment
param : mtaPath
2019-12-05 15:22:38 +02:00
- name : action
type : string
description : Used for finalizing the blue-green deployment.
default : NONE
2020-04-27 15:16:01 +02:00
possibleValues :
- NONE
- Resume
- Abort
- Retry
2019-12-05 15:22:38 +02:00
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2019-12-05 15:22:38 +02:00
- name : mode
type : string
description : "Controls if there is a standard deployment or a blue green deployment. Values: 'DEPLOY', 'BG_DEPLOY'"
default : DEPLOY
2020-04-27 15:16:01 +02:00
possibleValues :
- NONE
- DEPLOY
- BG_DEPLOY
2019-12-05 15:22:38 +02:00
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2019-12-05 15:22:38 +02:00
mandatory : true
- name : operationId
type : string
description : The operation ID. Used in case of bg-deploy in order to resume or abort a previously started deployment.
default :
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-02-28 12:01:09 +02:00
resourceRef :
- name : commonPipelineEnvironment
param : operationId
2019-12-05 15:22:38 +02:00
- name : apiUrl
type : string
description : The api url (e.g. https://example.org:12345
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2019-12-05 15:22:38 +02:00
mandatory : true
2020-09-16 11:33:03 +02:00
- name : username
aliases :
- name : user
deprecated : true
2019-12-05 15:22:38 +02:00
type : string
2020-09-16 11:33:03 +02:00
description : Username
2019-12-05 15:22:38 +02:00
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-04-16 14:37:45 +02:00
secret : true
2019-12-05 15:22:38 +02:00
mandatory : true
2020-08-28 15:38:15 +02:00
resourceRef :
- name : credentialsId
type : secret
param : username
2019-12-05 15:22:38 +02:00
- name : password
type : string
description : Password
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-04-16 14:37:45 +02:00
secret : true
2019-12-05 15:22:38 +02:00
mandatory : true
2020-08-28 15:38:15 +02:00
resourceRef :
- name : credentialsId
type : secret
param : password
2019-12-05 15:22:38 +02:00
- name : org
type : string
description : The org
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2019-12-05 15:22:38 +02:00
mandatory : true
- name : space
type : string
description : The space
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2019-12-05 15:22:38 +02:00
mandatory : true
- name : loginOpts
type : string
description : Additional options appended to the login command. Only needed for sophisticated cases. When provided it is the duty of the provider to ensure proper quoting / escaping.
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2019-12-05 15:22:38 +02:00
mandatory : true
- name : xsSessionFile
type : string
description : The file keeping the xs session.
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-02-28 12:01:09 +02:00
outputs :
resources :
- name : commonPipelineEnvironment
type : piperEnvironment
params :
- name : operationId
2019-12-05 15:22:38 +02:00
containers :
- name : xs
image : ppiper/xs-cli