2021-02-12 09:50:38 +02:00
|
|
|
metadata:
|
2021-10-04 13:08:34 +02:00
|
|
|
name: isChangeInDevelopment
|
2021-10-18 15:16:22 +02:00
|
|
|
description: This step checks if a certain change is in status 'in development'
|
2021-02-12 09:50:38 +02:00
|
|
|
longDescription: |
|
2021-10-18 15:16:22 +02:00
|
|
|
This step checks if a certain change is in status 'in development'
|
2021-02-12 09:50:38 +02:00
|
|
|
|
|
|
|
spec:
|
|
|
|
inputs:
|
2021-10-04 14:35:38 +02:00
|
|
|
secrets:
|
|
|
|
- name: credentialsId
|
|
|
|
description: Jenkins 'Username with password' credentials ID containing user and password to authenticate against the ABAP backend
|
|
|
|
type: jenkins
|
|
|
|
aliases:
|
|
|
|
- name: changeManagement/credentialsId
|
2021-02-12 09:50:38 +02:00
|
|
|
params:
|
|
|
|
- name: endpoint
|
|
|
|
type: string
|
|
|
|
mandatory: true
|
|
|
|
description: "The service endpoint"
|
|
|
|
aliases:
|
|
|
|
- name: changeManagement/endpoint
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
|
|
|
- GENERAL
|
|
|
|
- name: username
|
|
|
|
type: string
|
|
|
|
mandatory: true
|
2021-10-04 14:35:38 +02:00
|
|
|
description: "Service user to authenticate against the ABAP backend"
|
2021-02-12 09:50:38 +02:00
|
|
|
secret: true
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
|
|
|
- GENERAL
|
2021-10-04 14:35:38 +02:00
|
|
|
resourceRef:
|
|
|
|
- name: credentialsId
|
|
|
|
type: secret
|
|
|
|
param: username
|
2021-02-12 09:50:38 +02:00
|
|
|
- name: password
|
|
|
|
type: string
|
|
|
|
mandatory: true
|
2021-10-04 14:35:38 +02:00
|
|
|
description: "Service user password to authenticate against the ABAP backend"
|
2021-02-12 09:50:38 +02:00
|
|
|
secret: true
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
2021-10-04 14:35:38 +02:00
|
|
|
resourceRef:
|
|
|
|
- name: credentialsId
|
|
|
|
type: secret
|
|
|
|
param: password
|
2021-02-12 09:50:38 +02:00
|
|
|
- name: changeDocumentId
|
2021-10-04 14:35:38 +02:00
|
|
|
resourceRef:
|
|
|
|
- name: commonPipelineEnvironment
|
|
|
|
param: custom/changeDocumentId
|
2021-02-12 09:50:38 +02:00
|
|
|
type: string
|
|
|
|
mandatory: true
|
2021-10-04 14:35:38 +02:00
|
|
|
description: "ID of the change document to be checked for the status"
|
2021-02-12 09:50:38 +02:00
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- name: failIfStatusIsNotInDevelopment
|
|
|
|
type: bool
|
|
|
|
default: true
|
|
|
|
description: "lets the build fail in case the change is not in status 'in developent'. Otherwise a warning is emitted to the log"
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
2021-10-04 14:35:38 +02:00
|
|
|
- name: cmClientOpts
|
2021-02-12 09:50:38 +02:00
|
|
|
type: "[]string"
|
|
|
|
description: "additional options passed to cm client, e.g. for troubleshooting"
|
|
|
|
scope:
|
|
|
|
- PARAMETERS
|
|
|
|
- STAGES
|
|
|
|
- STEPS
|
2021-10-04 14:35:38 +02:00
|
|
|
aliases:
|
|
|
|
- name: clientOpts
|
|
|
|
- name: changeManagement/clientOpts
|
|
|
|
outputs:
|
|
|
|
resources:
|
|
|
|
- name: commonPipelineEnvironment
|
|
|
|
type: piperEnvironment
|
|
|
|
params:
|
|
|
|
- name: custom/isChangeInDevelopment
|
|
|
|
type: bool
|
|
|
|
containers:
|
|
|
|
- name: cmclient
|
|
|
|
image: ppiper/cm-client
|