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
2019-12-05 15:22:38 +02:00
description : Jenkins username/password credential for accessing xs endpoint.
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 :
- PARAMETERS
- STAGES
- STEPS
mandatory : false
default :
- name : operationIdLogPattern
type : string
description : Regex pattern for retrieving the ID of the operation from the xs log.
scope :
- PARAMETERS
- STAGES
- STEPS
default : ^.*xs bg-deploy -i (.*) -a.*$
mandatory : false
aliases :
- name : deployIdLogPattern
- name : mtaPath
type : string
description : Path to deployable
scope :
- PARAMETERS
- STAGES
- STEPS
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 :
- PARAMETERS
- STAGES
- STEPS
mandatory : false
- 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 :
- PARAMETERS
- STAGES
- STEPS
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 :
- PARAMETERS
- STAGES
- STEPS
mandatory : false
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 :
- PARAMETERS
- STAGES
- STEPS
mandatory : true
- name : user
type : string
description : User
scope :
- 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 :
- 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 :
- PARAMETERS
- STAGES
- STEPS
mandatory : true
- name : space
type : string
description : The space
scope :
- PARAMETERS
- STAGES
- STEPS
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 :
- PARAMETERS
- STAGES
- STEPS
mandatory : true
- name : xsSessionFile
type : string
description : The file keeping the xs session.
scope :
- PARAMETERS
- STAGES
- STEPS
mandatory : false
2020-02-28 12:01:09 +02:00
outputs :
resources :
- name : commonPipelineEnvironment
type : piperEnvironment
params :
- name : operationId
fields :
- name : operationId
2019-12-05 15:22:38 +02:00
containers :
- name : xs
image : ppiper/xs-cli
2019-12-09 09:41:00 +02:00
imagePullPolicy : Never