You've already forked sap-jenkins-library
							
							
				mirror of
				https://github.com/SAP/jenkins-library.git
				synced 2025-10-30 23:57:50 +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:
		| @@ -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{ | ||||
| 					{ | ||||
|   | ||||
| @@ -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{ | ||||
| 					{ | ||||
|   | ||||
| @@ -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{ | ||||
| 					{ | ||||
|   | ||||
| @@ -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{ | ||||
| 					{ | ||||
|   | ||||
| @@ -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{ | ||||
| 					{ | ||||
|   | ||||
| @@ -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{ | ||||
| 					{ | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
| ``` | ||||
|   | ||||
| @@ -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 | ||||
| ``` | ||||
|   | ||||
| @@ -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' | ||||
|   | ||||
| @@ -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' | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
| @@ -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: | ||||
|   | ||||
| @@ -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) | ||||
| } | ||||
|   | ||||
| @@ -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) | ||||
| } | ||||
|   | ||||
| @@ -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) | ||||
| } | ||||
|   | ||||
| @@ -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) | ||||
| } | ||||
|   | ||||
| @@ -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) | ||||
| } | ||||
|   | ||||
| @@ -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) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user