Closed i535489 closed 2 years ago
Hi,
Issue solved by a colleagues, documentation need to be improved !
For others that are stuck like me, to have variable replacement you need to mark variable like: "<%= variable to be replaced %>"
Found in the source code here : https://github.com/SAP/jenkins-library/blob/master/vars/cloudFoundryDeploy.groovy#L391
mta-mail-service-credentials.mtaext
resources:
- name: service-email
parameters:
config:
email-user: "<%= smtp-user-placeholder %>"
email-pass: "<%= smtp-password-placeholder %>"
Nicolas
Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team
to your comment.
@radsoulbeard could you maybe have a look how we could improve the docs here?
Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team
to your comment.
Issue got stale and no further activity happened. It has automatically been closed. Please re-open in case you still consider it relevant.
Hi,
Based on https://www.project-piper.io/steps/cloudFoundryDeploy/#parameters and explanation :
mtaExtensionCredentials - Defines a map of credentials that need to be replaced in the mtaExtensionDescriptor. This map needs to be created as value-to-be-replaced:id-of-a-credential-in-jenkins
credentials are not replaced even if in the log we have the lines:My setup: Jenkinsfile
mta.yml
mta-mail-service-credentials.mtaext
config.yml
In Jenkins:
In CF the result is:
As you can see the variables have been correctly replaced by the data from mta-mail-service-credentials.mtaext but the credentials have not been replaced.
Thanks for your help. Best regards