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/cloudFoundryDeleteSpace.yaml
Srinikitha Kondreddy 75e696ad7b
Add steps for cf space creation and deletion (#2049)
* [wip] Add steps for cf spaces creation and deletion

* Add tests

* Add cf space creation groovy file

* Fix shell script

* Fix shell script

* Add cloudFoundryCreateSpace command to command line controller

* Fix format

* Add cloudFoundryDeleteSpace command to command line controller

* Refactor cloudFoundryDeleteSpace step

* Add cloudFoundryDeleteSpace groovy file

* Add missing test

* Fix tests

* Add docu for cloudFoundryCreateSpace step

* Add docu for cloudFoundryDeleteSpace step

* Code review changes

Co-authored-by: Marcus Holl <marcus.holl@sap.com>
2020-09-24 11:30:25 +02:00

85 lines
2.1 KiB
YAML

metadata:
name: cloudFoundryDeleteSpace
description: Deletes a space in Cloud Foundry
longDescription: |
Deletes a space in Cloud Foundry
Mandatory:
* Cloud Foundry API endpoint, Organization, Space name
spec:
inputs:
secrets:
- name: cfCredentialsId
description: Jenkins credentials ID containing user and password to authenticate to the Cloud Foundry API
type: jenkins
aliases:
- name: cloudFoundry/credentialsId
resources:
- name: deployDescriptor
type: stash
params:
- name: cfApiEndpoint
type: string
description: Cloud Foundry API endpoint
scope:
- PARAMETERS
- STAGES
- STEPS
- GENERAL
mandatory: true
aliases:
- name: cloudFoundry/apiEndpoint
default: "https://api.cf.eu10.hana.ondemand.com"
- name: username
type: string
description: User or E-Mail for CF
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: true
secret: true
resourceRef:
- name: cfCredentialsId
type: secret
param: username
- name: password
type: string
description: Password for Cloud Foundry User
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: true
secret: true
resourceRef:
- name: cfCredentialsId
type: secret
param: password
- name: cfOrg
type: string
description: Cloud Foundry org
scope:
- PARAMETERS
- STAGES
- STEPS
- GENERAL
mandatory: true
aliases:
- name: cloudFoundry/org
- name: cfSpace
type: string
description: The name of the Cloud Foundry Space to be deleted
scope:
- PARAMETERS
- STAGES
- STEPS
- GENERAL
mandatory: true
aliases:
- name: cloudFoundry/space
containers:
- name: cf
image: ppiper/cf-cli
imagePullPolicy: Never