1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/resources/metadata/xsDeploy.yaml

161 lines
4.2 KiB
YAML
Raw Normal View History

metadata:
name: xsDeploy
description: Performs xs deployment
longDescription: |
Performs xs deployment
spec:
inputs:
secrets:
- name: credentialsId
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:
2020-08-31 16:10:28 +02:00
- 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:
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
default: ^.*xs bg-deploy -i (.*) -a.*$
mandatory: false
aliases:
- name: deployIdLogPattern
- name: mtaPath
type: string
description: Path to deployable
scope:
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
mandatory: true
resourceRef:
- name: commonPipelineEnvironment
param: mtaPath
- name: action
type: string
description: Used for finalizing the blue-green deployment.
default: NONE
possibleValues:
- NONE
- Resume
- Abort
- Retry
scope:
2020-08-31 16:10:28 +02:00
- 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
possibleValues:
- NONE
- DEPLOY
- BG_DEPLOY
scope:
2020-08-31 16:10:28 +02:00
- 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:
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
mandatory: false
resourceRef:
- name: commonPipelineEnvironment
param: operationId
- 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
mandatory: true
- name: user
type: string
description: User
scope:
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-04-16 14:37:45 +02:00
secret: true
mandatory: true
resourceRef:
- name: credentialsId
type: secret
param: username
- 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
mandatory: true
resourceRef:
- name: credentialsId
type: secret
param: password
- name: org
type: string
description: The org
scope:
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
mandatory: true
- name: space
type: string
description: The space
scope:
2020-08-31 16:10:28 +02:00
- 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:
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
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
mandatory: false
outputs:
resources:
- name: commonPipelineEnvironment
type: piperEnvironment
params:
- name: operationId
fields:
- name: operationId
containers:
- name: xs
image: ppiper/xs-cli
imagePullPolicy: Never