1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

CPI- Refactor Credential ID (#2946)

* Change credential name in yaml

Change cpiAPIServiceKeyCredentialId to cpiApiServiceKeyCredentialsId in cpi yaml files

* Refactor groovy files

Change cpiAPIServiceKeyCredentialId to cpiApiServiceKeyCredentialsId in cpi groovy files

* Change credential name in md

Change cpiAPIServiceKeyCredentialId to cpiApiServiceKeyCredentialsId in cpi md files
This commit is contained in:
Linda Siebert
2021-06-28 14:54:03 +02:00
committed by GitHub
parent 7b553e1e9a
commit 6426a2f792
24 changed files with 24 additions and 24 deletions

View File

@@ -116,7 +116,7 @@ func integrationArtifactDeployMetadata() config.StepData {
Spec: config.StepSpec{
Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiAPIServiceKeyCredentialId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
{Name: "cpiApiServiceKeyCredentialsId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
},
Parameters: []config.StepParameters{
{

View File

@@ -117,7 +117,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
Spec: config.StepSpec{
Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiAPIServiceKeyCredentialId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
{Name: "cpiApiServiceKeyCredentialsId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
},
Parameters: []config.StepParameters{
{

View File

@@ -145,7 +145,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
Spec: config.StepSpec{
Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiAPIServiceKeyCredentialId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
{Name: "cpiApiServiceKeyCredentialsId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
},
Parameters: []config.StepParameters{
{

View File

@@ -145,7 +145,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
Spec: config.StepSpec{
Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiAPIServiceKeyCredentialId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
{Name: "cpiApiServiceKeyCredentialsId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
},
Parameters: []config.StepParameters{
{

View File

@@ -122,7 +122,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Spec: config.StepSpec{
Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiAPIServiceKeyCredentialId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
{Name: "cpiApiServiceKeyCredentialsId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
},
Parameters: []config.StepParameters{
{

View File

@@ -123,7 +123,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Spec: config.StepSpec{
Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiAPIServiceKeyCredentialId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
{Name: "cpiApiServiceKeyCredentialsId", Description: "Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API", Type: "jenkins"},
},
Parameters: []config.StepParameters{
{

View File

@@ -24,7 +24,7 @@ Example of a YAML configuration file (such as `.pipeline/config.yaml`).
steps:
<...>
integrationArtifactDeploy:
cpiAPIServiceKeyCredentialId: 'MY_API_SERVICE_KEY'
cpiApiServiceKeyCredentialsId: 'MY_API_SERVICE_KEY'
integrationFlowId: 'MY_INTEGRATION_FLOW_NAME'
integrationFlowVersion: 'MY_INTEGRATION_FLOW_VERSION'
platform: cf

View File

@@ -24,7 +24,7 @@ Example for the use in a YAML configuration file (such as `.pipeline/config.yaml
steps:
<...>
integrationArtifactDownload:
cpiAPIServiceKeyCredentialId: 'MY_API_SERVICE_KEY'
cpiApiServiceKeyCredentialsId: 'MY_API_SERVICE_KEY'
integrationFlowId: 'MY_INTEGRATION_FLOW_NAME'
integrationFlowVersion: 'MY_INTEGRATION_FLOW_VERSION'
downloadPath: MY_INTEGRATION_FLOW_DOWNLOAD_PATH

View File

@@ -24,7 +24,7 @@ Example for the use in a YAML configuration file (such as `.pipeline/config.yaml
steps:
<...>
integrationArtifactGetMplStatus:
cpiAPIServiceKeyCredentialId: 'MY_API_SERVICE_KEY'
cpiApiServiceKeyCredentialsId: 'MY_API_SERVICE_KEY'
integrationFlowId: 'INTEGRATION_FLOW_ID'
platform: cf
```

View File

@@ -24,7 +24,7 @@ Example for the use in a YAML configuration file (such as `.pipeline/config.yaml
steps:
<...>
integrationArtifactGetServiceEndpoint:
cpiAPIServiceKeyCredentialId: 'MY_API_SERVICE_KEY'
cpiApiServiceKeyCredentialsId: 'MY_API_SERVICE_KEY'
integrationFlowId: 'MY_INTEGRATION_FLOW_ID'
platform: cf
```

View File

@@ -24,7 +24,7 @@ Example of a YAML configuration file (such as `.pipeline/config.yaml`).
steps:
<...>
integrationArtifactUpdateConfiguration:
cpiAPIServiceKeyCredentialId: 'MY_API_SERVICE_KEY'
cpiApiServiceKeyCredentialsId: 'MY_API_SERVICE_KEY'
integrationFlowId: 'MY_INTEGRATION_FLOW_NAME'
integrationFlowVersion: 'MY_INTEGRATION_FLOW_VERSION'
platform: 'cf'

View File

@@ -24,7 +24,7 @@ Example for the use in a YAML configuration file (such as `.pipeline/config.yaml
steps:
<...>
integrationArtifactUpload:
cpiAPIServiceKeyCredentialId: 'MY_API_SERVICE_KEY'
cpiApiServiceKeyCredentialsId: 'MY_API_SERVICE_KEY'
integrationFlowId: 'MY_INTEGRATION_FLOW_ID'
integrationFlowVersion: 'MY_INTEGRATION_FLOW_VERSION'
integrationFlowName: 'MY_INTEGRATION_FLOW_Name'

View File

@@ -7,7 +7,7 @@ metadata:
spec:
inputs:
secrets:
- name: cpiAPIServiceKeyCredentialId
- name: cpiApiServiceKeyCredentialsId
description: Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API
type: jenkins
params:

View File

@@ -7,7 +7,7 @@ metadata:
spec:
inputs:
secrets:
- name: cpiAPIServiceKeyCredentialId
- name: cpiApiServiceKeyCredentialsId
description: Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API
type: jenkins
params:

View File

@@ -7,7 +7,7 @@ metadata:
spec:
inputs:
secrets:
- name: cpiAPIServiceKeyCredentialId
- name: cpiApiServiceKeyCredentialsId
description: Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API
type: jenkins
params:

View File

@@ -7,7 +7,7 @@ metadata:
spec:
inputs:
secrets:
- name: cpiAPIServiceKeyCredentialId
- name: cpiApiServiceKeyCredentialsId
description: Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API
type: jenkins
params:

View File

@@ -7,7 +7,7 @@ metadata:
spec:
inputs:
secrets:
- name: cpiAPIServiceKeyCredentialId
- name: cpiApiServiceKeyCredentialsId
description: Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API
type: jenkins
params:

View File

@@ -7,7 +7,7 @@ metadata:
spec:
inputs:
secrets:
- name: cpiAPIServiceKeyCredentialId
- name: cpiApiServiceKeyCredentialsId
description: Jenkins credential ID for secret text containing the service key to the SAP Cloud Integration API
type: jenkins
params:

View File

@@ -5,7 +5,7 @@ import groovy.transform.Field
void call(Map parameters = [:]) {
List credentials = [
[type: 'token', id: 'cpiAPIServiceKeyCredentialId', env: ['PIPER_apiServiceKey']]
[type: 'token', id: 'cpiApiServiceKeyCredentialsId', env: ['PIPER_apiServiceKey']]
]
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
}

View File

@@ -5,7 +5,7 @@ import groovy.transform.Field
void call(Map parameters = [:]) {
List credentials = [
[type: 'token', id: 'cpiAPIServiceKeyCredentialId', env: ['PIPER_apiServiceKey']]
[type: 'token', id: 'cpiApiServiceKeyCredentialsId', env: ['PIPER_apiServiceKey']]
]
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
}

View File

@@ -5,7 +5,7 @@ import groovy.transform.Field
void call(Map parameters = [:]) {
List credentials = [
[type: 'token', id: 'cpiAPIServiceKeyCredentialId', env: ['PIPER_apiServiceKey']]
[type: 'token', id: 'cpiApiServiceKeyCredentialsId', env: ['PIPER_apiServiceKey']]
]
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
}

View File

@@ -5,7 +5,7 @@ import groovy.transform.Field
void call(Map parameters = [:]) {
List credentials = [
[type: 'token', id: 'cpiAPIServiceKeyCredentialId', env: ['PIPER_apiServiceKey']]
[type: 'token', id: 'cpiApiServiceKeyCredentialsId', env: ['PIPER_apiServiceKey']]
]
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
}

View File

@@ -5,7 +5,7 @@ import groovy.transform.Field
void call(Map parameters = [:]) {
List credentials = [
[type: 'token', id: 'cpiAPIServiceKeyCredentialId', env: ['PIPER_apiServiceKey']]
[type: 'token', id: 'cpiApiServiceKeyCredentialsId', env: ['PIPER_apiServiceKey']]
]
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
}

View File

@@ -5,7 +5,7 @@ import groovy.transform.Field
void call(Map parameters = [:]) {
List credentials = [
[type: 'token', id: 'cpiAPIServiceKeyCredentialId', env: ['PIPER_apiServiceKey']]
[type: 'token', id: 'cpiApiServiceKeyCredentialsId', env: ['PIPER_apiServiceKey']]
]
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
}