Roland Stengel
47d8d2c357
GPP Init Stage needs to consider mta yaml path ( #3305 )
...
mtaBuild - support config.source to yaml path
2021-12-14 14:43:02 +01:00
Christopher Fenner
6f06ce0f56
feat(hadolint): allow config secret from vault ( #3353 )
...
* allow config secret from vault
* add credential alias
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-12-14 13:42:06 +01:00
Dominik Lendle
f188979412
Add html processing to AUnit stage/step ( #3302 )
...
* change return after files are persisted & Change logging
* html processing
* Extend step parameters
* Add documentation
* html processing
* add generateHTML flag to general
* test adaptions
* step metadata corrections
* adapt formatting
* Update documentation/docs/pipelines/abapEnvironment/extensibility.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
* Update documentation/docs/pipelines/abapEnvironment/extensibility.md
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
* adapt unit tests
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2021-12-13 16:39:32 +01:00
Christopher Fenner
38e4e0a133
fix(hadolint): change docker image ( #3351 )
...
* use hadolint alpine image
* update generated files
2021-12-13 14:21:09 +01:00
Eugene Kortelyov
e727601ea4
feat(shellExecute): cleanup, Jenkins step, docs … ( #3313 )
...
* remove functionality with script downloading (security issue), clean up code
* remove vault client creating, remove vault params
* fix go generate issue
* error handling and test updated
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-12-13 12:31:31 +01:00
Christian Volk
ff6a26dd42
feat(malwareExecuteScan): support for vault ( #3346 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-12-13 11:58:33 +01:00
Marc Bormeth
61d1358ca5
hotfix: Don't write SonarQube coverage metrics to InfluxDB ( #3347 )
2021-12-10 09:13:25 +01:00
rosemarieB
e6c5c8a72f
Abap refactoring ( #3340 )
...
* Update abapAddonAssemblyKitReleasePackages.go
* add error handling for initAAKaaS
* runtime to config, url.QueryEscape, check return body
* Update abapAddonAssemblyKitCheckCVs_test.go
* add log entrys for testing
* correct yaml
* change unmarshal logic
* Update abapAddonAssemblyKitCheckPV_test.go
* adding utils functionality
* Update bfw_test.go
* reset CheckPV
* reset CheckCVs
* reset ReserveNextPackages
* set back CheckPV and CheckCVs
* moving mock
* renaming
* renaming
* moving mocking to checkCVs test
* fixing unittests
* trying mock with comment
* referencing unittest to mockfile
* Update abapAddonAssemblyKitCheckCVs.go
* Update cmd/abapAddonAssemblyKitCheckPV.go
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
* Update cmd/abapAddonAssemblyKitReleasePackages.go
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
* Update cmd/abapAddonAssemblyKitPublishTargetVector.go
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
* Update cmd/abapAddonAssemblyKitReserveNextPackages.go
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
* fixing unittests
* fixing mock comment
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2021-12-09 12:54:18 +01:00
Marc Bormeth
b213af1089
Add Coverage Info to sonarscan.json ( #3262 )
...
* Add coverage metrics to report + influx
* Write unit tests
* Add integration test for Sonar Measures Component Service
2021-12-08 09:02:12 +01:00
Christopher Fenner
b9eb48c149
fix: add kaniko env var for container detection ( #3157 )
...
* add kaniko env var
* Rename kaniko.yaml to kanikoExecute.yaml
* update generated files
2021-12-07 08:38:53 +01:00
Oliver Nocon
9a78fabc89
feat(golangBuild): add new step for building go ( #3178 )
...
* feat(golangBuild): add new step for building go
* chore(golangBuild): increase test coverage
* remove indirect dependencies
* cleanup go.sum
* chore: remove trailing spaces
* chore(golangBuild): cleanup params, add groovy wrapper
* fix: update docker options
* update docs
* update installation according to https://golang.org/doc/go-get-install-deprecation
* fix: update installation
* update groovy test exclusion
* Update vars/golangBuild.groovy
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
* update branch
* address PR feedback
* fix compilation error
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2021-12-06 16:17:59 +01:00
rosemarieB
e90856d5bf
Generic build step ( #3323 )
...
* new step abapEnvironmentBuild
* Update piper.go
* Update abapEnvironmentBuild.go
* update yaml file
* Logging for debugging
* Update abaputils.go
* Update connector.go
* assigning connector
* delete debugging logging
* Update abapEnvironmentBuild.go
* certificate to yaml
* Update abapEnvironmentBuild.go
* add scope
* Update abapEnvironmentBuild.go
* Update abapEnvironmentBuild.yaml
* change certificate name in yaml
* test my new gitscript
* logging for debugging
* debugging...
* adding options to client.
* skip verification
* debugging
* debugging...
* switch of transportskipverification
* changing connector return
* deleting additional set options
* fixed timeout error
* adding certificate
* testing without certificate set
* testing with certificate set
* download, publish and value logic
* write values to cpe
* logging
* adding condition on string length
* change publishmethod and some logging
* change download method -> using references
* evaluation of parameter for download
* add case for empty string
* adding unittests
* Update mockClient.go
* make abapEnvironmentBuildUtilsBundle powerful
* refactor abapEnvironmentBuild into pieces
* check error message
* check error message 2
* check error message 3
* check error message 4
* remove check error message
* cleanup
* adding unittests
* unittests and docu
* docu
* docu
* Update abapEnvironmentBuild.md
* removing trailing spaces and adding empty lines in docu
* Update abapEnvironmentBuild.md
* fixing unittest and PR recommen
* Update abapEnvironmentPipelineStageBuild.groovy
* Update abapEnvironmentPipelineStageBuild.groovy
* Update abapEnvironmentPipelineStageBuild.groovy
* Update abapEnvironmentPipelineStageBuild.groovy
* changes derived from pull request
Co-authored-by: tiloKo <70266685+tiloKo@users.noreply.github.com>
2021-12-06 14:43:37 +01:00
Sven Merk
ae9cb1e6f2
Fix alias definition for agentUrl ( #3328 )
...
* Fix alias definition for agentUrl
* Update generated file
2021-12-03 12:16:31 +01:00
Oliver Nocon
a76b9d563d
feat(kubernetesDeploy): consume credentials from environment ( #3129 )
...
* feat(kubernetesDeploy): consume credentials from environment
* update vault
* update handling of docker config.json
* chore: remove comments
2021-12-02 12:18:21 +01:00
kingvvgo
b29a2f2264
Add Changes for value of docker image ( #3303 )
...
* Add Changes for value of docker image
* Get docker image value
* Fix
* Fix unit
* Add chnages for kaniko and mta builds
* Fix
* Test changes
* Test
* Move func ResolveMetadata to stepmeta.go
* Fix
* Change getConfig.go
* Fix getting docker value for mta, npm and kaniko
* Fix according to suggestions
* Add func to get only value of docker image
* Test empty value of docker image
* Fix for getDockerImageValue
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-12-01 07:46:18 +01:00
kulhadia
347ae68ea9
added the beta notification for cnbBuild step ( #3316 )
2021-11-30 11:51:00 +01:00
Pavel Busko
ac09e6e4aa
feat(cnbBuild): refactored buildEnvVars input property, added resourceRef to the buildpacks ( #3310 )
...
Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
2021-11-29 11:32:32 +01:00
Pavel Busko
aa9c2a6b8b
removed pipelineConfigAndTests from the stashing after build ( #3315 )
...
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com>
2021-11-26 10:29:28 +01:00
Pavel Busko
74c0fe5e28
feat(protecodeExecuteScan): use dockerConfigJSON from the commonPipel… ( #3248 )
...
* feat(protecodeExecuteScan): use dockerConfigJSON from the commonPipelineEnvironment.custom.dockerConfigJSON
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com>
2021-11-25 13:12:19 +01:00
tiloKo
081f01f93b
add scope ( #3291 )
...
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
Co-authored-by: Peter Persiel <6087940+peterpersiel@users.noreply.github.com>
2021-11-23 08:50:46 +01:00
Eugene Kortelyov
d395b362ed
feat: step to execute shell scripts ( #3196 )
...
* shell executor initial commit
* functionality updates
* changes in logging implementation (using internal logging), changes in execution
* remove unused field
* remove duplicate from code
* update vault flow and remove unnecessary params
* update generated step file
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-19 10:05:39 +01:00
Oliver Nocon
0a51561d2c
chore(kaniko): update to latest image ( #3280 )
...
* chore(kaniko): update to latest image
* update yaml
2021-11-17 07:49:14 +01:00
Anil Keshav
a92dd234b1
feat (buildSettingsInfo) new common cpe which holds build settings json value ( #3272 )
...
* create build settings for maven
* cases for when mavenBuild may be present
* fixing unit test for mavenBuild to include cpe
* changing position of buildSettngsJson to be called atfter build runs
* package
* extending the struct for other build types
* adding values for mta build settings
* changing config data type
* adding npm build settings
* unit tests
* fix trailing space
* typo correction in yaml
* Vitalii/build settings info (#3277 )
* Add buildsettings package
* Improve buildSetting package for mta, npm
* Add unit-test
* Fix
* Fix
Co-authored-by: Vitalii Sidorov <vitalii.sidorov@sap.com>
* review changes
* removing buildTool param
* changing npm script name
* fix npmExecute tests
* including build settings info in npm struct
Co-authored-by: Your Name <you@example.com>
Co-authored-by: kingvvgo <56587879+kingvvgo@users.noreply.github.com>
Co-authored-by: Vitalii Sidorov <vitalii.sidorov@sap.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-16 15:02:57 +01:00
Philipp Stehle
f9f0cbfd33
enforce that step metadata yaml file is called <step>.yaml ( #3226 )
...
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
2021-11-15 14:20:20 +01:00
Oliver Nocon
7be9b2b038
chore(mbt): update mbt image ( #3186 )
...
image `mbtci` has been deprecated and is no longer maintained.
As per: https://hub.docker.com/r/devxci/mbtci
Co-authored-by: Thorsten Duda <thorsten.duda@sap.com>
2021-11-15 14:04:16 +01:00
Mayur Belur Mohan
d3b090e63e
ApiKeyValueMapDownload Command ( #3245 )
...
* ApiKeyValueMapDownload Command
* CodeReview Fixes
2021-11-15 13:48:14 +01:00
Siarhei Pazdniakou
e97242b7e7
Fixed validation for possibleValues option ( #3228 )
...
* Fixed validation for possibleValues option
* Change oneof-custom to possible-values
* go generate
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-15 12:06:48 +01:00
Oliver Nocon
f431054b6f
feat(WhiteSource): consume credentials from cpe ( #3206 )
...
* feat: func for Docker config.json
Provide re-use function to create/update Docker conifg.json
* add comment
* update WhiteSource step
* fixes and additional tests
2021-11-15 07:48:40 +01:00
tiloKo
54479f7255
abapAddonAssemblyKitPublishTargetVector polling + refactoring ( #3271 )
...
* new checks for commitIDs
* new checks for commitIDs
* relocate step from build stage to initial checks + refac
* log list
* fix log + check
* log format
* fix unit tests
* targetVector refac + polling
* refac
* refac 2
* polling
* remove debug output
* remove debug output
Co-authored-by: Christian Luttenberger <42861202+bluesbrother84@users.noreply.github.com>
2021-11-12 14:33:18 +01:00
Michael
0f218640dd
gradle is also supported ( #3261 )
...
* gradle is also supported
see https://github.com/SAP/jenkins-library/pull/2319
but it now fails since https://github.com/SAP/jenkins-library/pull/3125
* go generate
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-12 14:05:42 +01:00
Dominik Lendle
f67cbbe0a7
A unit step integration ( #3120 )
...
* Add AUnit stage
* Add AUnit stage to ABAP Pipeline
* Add Groovy Tests
* surround header with space line
* correct class name
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* adapt Pipeline Tests
* Update tests & docu
* adapt tests
* Fix Pipeline Tests
* adapt tests
* Adapt tests
* Adapt tests
* docu fixes
* Adapt tests
* Improve Tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt host config
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* Adapt tests
* adapt docu links
* adapt docu links
* adapt docu links
* adapt docu links
* Add example to config docu
* change docu
* Change host check
* Adapt tests
* Add Prepare System defaults
* Change Prepare System defaults
* return after writing xml results
* change logging
* return after results have been persisted
* Change host check
* echo test
* echo test
* echo test
* echo test
* echo test
* config host checker working
* Enable host groovy test
* remove duplicates
* docu extension AUnit extension stage
* Remove trailing spaces
* package restrictions added to docu
* correct to type
* correct type aunit tests
* add capital letters to docu examples
* remove escape
* adapt unit tests
Co-authored-by: Daniel Mieg <daniel.mieg@sap.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-11 15:10:14 +01:00
Oliver Nocon
b4d314215e
chore(cloudFoundryDeploy): remove deprecated groovy-based part ( #3242 )
...
* chore(cloudFoundryDeploy): remove deprecated groovy-based part
* chore: update test due to different step logic
* chore: update documentation
* fix yaml issue
2021-11-09 07:44:31 +01:00
Maurice Breit
b89f095b53
feat(githubCreateIssue): add updateExisting flag ( #3193 ) ( #3200 )
...
* feat(githubCreateIssue): add updateExisting flag (#3193 )
* run go generate again
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-08 14:54:39 +01:00
Oliver Feldmann
0c64917ad5
kubernetesDeploy - Add option to replace instead of apply ( #3216 )
...
* Add option to replace instead of apply
* Use deploy command string
And make --force optional
* Better force description
* Don't warn on apply + --force
* Improve description
Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>
Co-authored-by: Linda Siebert <39100394+LindaSieb@users.noreply.github.com>
2021-11-04 14:11:31 +01:00
Christian Volk
874a314bf7
feat(terraformExecute): workspace selection ( #3233 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-04 13:03:45 +01:00
Christian Volk
cd6e93acba
chore(terraformExecute): update terraform cli to 1.0.10 ( #3229 )
...
* chore(terraformExecute): update terraform cli to 1.0.10
* fix
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-04 12:24:57 +01:00
Linda Siebert
6b827b0dfb
kubernetesDeploy- add documentation for <image-name> ( #3246 )
...
* Add documentation for image writing
* Generate
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
2021-11-04 10:42:46 +01:00
Christian Volk
90d5ab7ca2
feat(terraformExecute): pass tf outputs to cpe ( #3241 )
...
* feat(terraformExecute): pass tf outputs to cpe
* cleanup
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-04 10:28:41 +01:00
ajrussellsap
395bdc58f6
Re-enable the docker versioning scheme ( #3221 )
...
* Re-enable the docker versioning scheme
* Update artifactPrepareVersion_generated.go
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-11-04 09:45:53 +01:00
Philipp Stehle
0f3b48aaec
feat(cnbBuild): support for paketo bindings ( #3236 )
...
* [WIP] bindings support for cnbBuild step
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
* add unit tests
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
* switch to mapstruct for more meaningful errors
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
* add integration test for bindings
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
* Add documentation for cnbBuild.bindings
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
* fixed unit tests
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
* apply codeclimate suggestions
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
* renamed field "secret" to "key"
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
2021-11-03 12:37:26 +01:00
Mayur Belur Mohan
3ee4339af1
ApiProxyDownload Command ( #3197 )
...
* ApiProxyDownload Command
* Lint Fixes
* Lint Fixes
* codereview fixes
* Code Review Fixes
* CodeReview Fixes
* CodeReview Fixes
* Code Review Fixes
* Code Review Changes
* CodeReview Fixes
* CodeReview Fixes
* CodeReview Fix
* CodeReview Fixes
* CodeReviw Fixes
* CodeReview Changes
* CodeReview Fixes
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
2021-11-02 10:30:08 +01:00
Christian Volk
7517873b62
feat(terraformExecute): fetch CLI config from vault or jenkins ( #3225 )
...
* feat(terraformExecute): run init prior to command
* Docs & fmt
* cleanup
* feat(terraformExecute): fetch cli config from vault or jenkins
* fix
* cleanup
* cleanup
* Update resources/metadata/terraformExecute.yaml
* rename config param from terraformConfigFile to cliConfigFile
* rename credential params
* cleanup
* fix
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-10-29 13:58:34 +02:00
Christian Volk
b1cbc0bcc7
feat(terraformExecute): run init prior to command ( #3223 )
...
* feat(terraformExecute): run init prior to command
* Docs & fmt
* cleanup
* cleanup
* cleanup
2021-10-29 12:06:06 +02:00
Christian Volk
88bd8f1303
chore(terraformExecute): set TF_IN_AUTOMATION env var ( #3224 )
...
* chore(terraformExecute): set TF_IN_AUTOMATION env var
* cleanup
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-10-28 16:55:43 +02:00
Christian Volk
e041f84f2f
feat(terraformExecute): pass global options to terraform ( #3220 )
...
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-10-28 16:20:14 +02:00
Ralf Pannemans
9a60143153
Modification to documentation of cnbBuild. ( #3222 )
...
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com>
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Jan von Löwenstein <jan.von.loewenstein@sap.com>
2021-10-28 13:52:21 +02:00
Christian Volk
adcc0447ba
fix(terraformExecute): deactivate entrypoint ( #3218 )
...
* fix(terraformExecute): deactivate entrypoint
* fix
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-10-28 13:14:29 +02:00
Oliver Feldmann
bfeb1641b2
Add tgz files to deploy descriptor ( #3205 )
2021-10-27 10:47:22 +02:00
Oliver Feldmann
65083438cf
Add tpl files to deployDescriptor stash ( #3202 )
2021-10-25 13:57:46 +02:00
Christian Volk
eee3c2302b
feat(whitesourceExecuteScan): evaluate dockerConfigJSON from pipeline… ( #3185 )
...
* feat(whitesourceExecuteScan): evaluate dockerConfigJSON from pipeline environment
* Update cmd/whitesourceExecuteScan_test.go
Co-authored-by: Giridhar Shenoy <giridhar.shenoy@sap.com>
Co-authored-by: Giridhar Shenoy <giridhar.shenoy@sap.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2021-10-25 09:07:46 +02:00