mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-19 19:44:27 +02:00
* new Piper step abapEnvironmentUpdateAddOnProduct * modified entity json format and some minor function changes * modified groovy file for pipelineStageIntTests and addonDescriptor to be mandatory in yaml file * sync with fork branch ranliii/abap-environment-update-addon-product * added generated file * fail the step as long as addon update not successful and unit tests * added docu for the new step * tried to fix groovy unit test * tried to fix groovy unit test 2 * for test * fixed error * fixed error 2 * tried to fix groovy unit test error * added groovy unit test for new Piper step * tried to fix groovy unit test error * tried to fix groovy unit test error 2 * changes after first review * remove .DS_Store * for test * revert test relevant changes * try to fix groovy test error * try to fix groovy error * 3rd try to fix groovy test error * rewrite the failed groovy test * small changes and try with timeout as well as poll interval * changes for test * revert test-related changes * try to fix errors * Revert "Merge branch 'master' into abap-environment-update-addon-product" This reverts commit 1ee0bcd80dd8ec58102ece31cacbe08bfd669ba1, reversing changes made to 3c4a99dfb027ad561f0a52e888acaffb7be0053f. * try to fix error * try to fix error 2 * try to fix error 3 * align go.mod with master branch * revert go.mod to commit 3c4a99d * for test * revert test changes * new unit test * Revert "Revert "Merge branch 'master' into abap-environment-update-addon-product"" This reverts commit 363c0380011e148231273d3f180dcec4d5cba88f. * go generate after merging master --------- Co-authored-by: Jk1484 <35270240+Jk1484@users.noreply.github.com> Co-authored-by: Ran Li <ran.li01@sap.com> Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
1.9 KiB
1.9 KiB
${docGenStepName}
${docGenDescription}
Prerequisites
- Please make sure, that you are under Embedded Steampunk environment.
- Please make sure, that the service landscape-portal-api-for-s4hc with plan api was assigned as entitlement to the subaccount, where you are about to deploy addon product.
- Please make sure, that before deploying addon product, an instance of landscape-portal-api-for-s4hc (plan api) was created, and a service key with x509 authentication mechanism was created for the instance. The service key needs to be stored in the Jenkins Credentials Store.
- Please make sure, that the system to deploy addon product is active, and the descriptor file with deployment information is available.
${docGenParameters}
${docGenConfiguration}
${docJenkinsPluginDependencies}
Example: Configuration in the config.yml
The recommended way to configure your pipeline is via the config.yml file. In this case, calling the step in the Jenkinsfile is reduced to one line:
abapLandscapePortalUpdateAddOnProduct script: this
The configuration values for the addon update can be passed through the config.yml
file:
steps:
abapLandscapePortalUpdateAddOnProduct:
landscapePortalAPICredentialsId: 'landscapePortalAPICredentialsId'
abapSystemNumber: 'abapSystemNumber'
addonDescriptorFileName: 'addon.yml'
addonDescriptor: 'addonDescriptor'
Example: Configuration in the Jenkinsfile
The step, including all parameters, can also be called directly from the Jenkinsfile. In the following example, a configuration file is used.
abapLandscapePortalUpdateAddOnProduct (
script: this,
landscapePortalAPICredentialsId: 'landscapePortalAPICredentialsId'
abapSystemNumber: 'abapSystemNumber'
addonDescriptorFileName: 'addon.yml'
addonDescriptor: 'addonDescriptor'
)
The file addon.yml
would look like this:
addonProduct: some-addon-product
addonVersion: some-addon-version