mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
83 lines
2.2 KiB
Markdown
83 lines
2.2 KiB
Markdown
|
# ${docGenStepName}
|
||
|
|
||
|
## ${docGenDescription}
|
||
|
|
||
|
## Prerequisites
|
||
|
|
||
|
* The credentials to access the AAKaaS (e.g. S-User) must be stored in the Jenkins Credential Store
|
||
|
* This step needs the names of the packages which should be released. The packages needs to be in status "L"ocked. If they are already in status "R"eleased it is fine, then the release will just not be executed. However this step will end with an error if a package has status "P"lanned.
|
||
|
* The package names are taken from the addonDescriptor in the commonPipelineEnvironment together with the status of the packages.
|
||
|
* The step [abapAddonAssemblyKitRegisterPackages](https://sap.github.io/jenkins-library/steps/abapAddonAssemblyKitRegisterPackages) will set the status of the packages to "L"ocked and writes the needed data to the commonPipelineEnvironment.
|
||
|
|
||
|
## ${docGenParameters}
|
||
|
|
||
|
## ${docGenConfiguration}
|
||
|
|
||
|
## ${docJenkinsPluginDependencies}
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
### 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:
|
||
|
|
||
|
```groovy
|
||
|
abapAddonAssemblyKitReleasePackages script: this
|
||
|
```
|
||
|
|
||
|
The config.yml should look like this:
|
||
|
|
||
|
```yaml
|
||
|
steps:
|
||
|
abapAddonAssemblyKitReleasePackages:
|
||
|
abapAddonAssemblyKitCredentialsId: 'abapAddonAssemblyKitCredentialsId',
|
||
|
abapAddonAssemblyKitEndpoint: 'https://myabapAddonAssemblyKitEndpoint.com',
|
||
|
```
|
||
|
|
||
|
### Input via the CommonPipelineEnvironment
|
||
|
|
||
|
Mandatory fields:
|
||
|
|
||
|
```json
|
||
|
{"addonProduct":"",
|
||
|
"addonVersion":"",
|
||
|
"addonVersionAAK":"",
|
||
|
"addonUniqueID":"",
|
||
|
"customerID":"",
|
||
|
"AddonSpsLevel":"",
|
||
|
"AddonPatchLevel":"",
|
||
|
"TargetVectorID":"",
|
||
|
"repositories":[
|
||
|
{
|
||
|
"name":"",
|
||
|
"tag":"",
|
||
|
"branch":"",
|
||
|
"version":"",
|
||
|
"versionAAK":"",
|
||
|
"PackageName":"SAPK001001REPOA",
|
||
|
"PackageType":"",
|
||
|
"SpLevel":"",
|
||
|
"PatchLevel":"",
|
||
|
"PredecessorCommitID":"",
|
||
|
"Status":"L",
|
||
|
"Namespace":"",
|
||
|
"SarXMLFilePath":""
|
||
|
},
|
||
|
{
|
||
|
"name":"",
|
||
|
"tag":"",
|
||
|
"branch":"",
|
||
|
"version":"",
|
||
|
"versionAAK":"",
|
||
|
"PackageName":"SAPK002001REPOB",
|
||
|
"PackageType":"",
|
||
|
"SpLevel":"",
|
||
|
"PatchLevel":"",
|
||
|
"PredecessorCommitID":"",
|
||
|
"Status":"R",
|
||
|
"Namespace":"",
|
||
|
"SarXMLFilePath":""
|
||
|
}
|
||
|
]}
|
||
|
```
|