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
Marcus Holl 9ee2926018
xs deploy go (#931)
introduce xs deploy
2019-12-05 14:22:38 +01:00

128 lines
3.3 KiB
YAML

metadata:
name: xsDeploy
description: Performs xs deployment
longDescription: |
Performs xs deployment
spec:
inputs:
secrets:
- name: xsDeployUserCredentialsId
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
- name: action
type: string
description: Used for finalizing the blue-green deployment.
default: NONE
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
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
- 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
mandatory: true
- name: password
type: string
description: Password
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: true
- 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
containers:
- name: xs
image: ppiper/xs-cli
pullImage: false