-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# ${docGenStepName} | ||
|
||
## ${docGenDescription} | ||
|
||
### Artifacts | ||
|
||
- addonDescriptorFile (addon.yml) | ||
The addonDescriptorFile as specified in parameter addonDescriptorFileName is archived as artifact. This is done as this file is the main configuration and usually changed with every run. Thus it simplifies support if the corresponding configuration file is directly accessible in the pipeline. | ||
|
||
## Prerequisites | ||
|
||
* The credentials to access the AAKaaS (Technical Communication User) must be stored in the Jenkins Credential Store | ||
* The step needs an addon.yml containing information about the Product Version and corresponding Software Component Versions/Repositories | ||
|
||
A detailed description of all prerequisites of the scenario and how to configure them can be found in the [Scenario Description](https://www.project-piper.io/scenarios/abapEnvironmentAddons/). | ||
|
||
## ${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 | ||
abapAddonAssemblyKitCheck script: this | ||
``` | ||
|
||
If the step is to be configured individually the config.yml should look like this: | ||
|
||
```yaml | ||
steps: | ||
abapAddonAssemblyKitCheck: | ||
abapAddonAssemblyKitCredentialsId: 'abapAddonAssemblyKitCredentialsId', | ||
addonDescriptorFileName: 'addon.yml' | ||
``` | ||
More convenient ways of configuration (e.g. on stage level) are described in the respective scenario/pipeline documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import groovy.transform.Field | ||
|
||
@Field String STEP_NAME = getClass().getName() | ||
@Field String METADATA_FILE = 'metadata/abapAddonAssemblyKitCheck.yaml' | ||
|
||
void call(Map parameters = [:]) { | ||
List credentials = [ | ||
[type: 'usernamePassword', id: 'abapAddonAssemblyKitCredentialsId', env: ['PIPER_username', 'PIPER_password']], | ||
[type: 'token', id: 'abapAddonAssemblyKitCertificateFileCredentialsId', env: ['PIPER_abapAddonAssemblyKitCertificateFile']], | ||
[type: 'token', id: 'abapAddonAssemblyKitCertificatePassCredentialsId', env: ['PIPER_abapAddonAssemblyKitCertificatePass']] | ||
] | ||
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials, false, false, true) | ||
} |