Christopher Fenner
9cd3ee5758
fix(checks+tests): fail pipeline if plugins fail the build ( #2463 )
...
* fix false negative
* add comment
* add default
2020-12-11 14:49:36 +01:00
Thilaknath
104435c8dd
Show user friendly error messages for pipeline restart step. ( #2409 )
...
* Add message parameter to pipelineRestart to make error messages user friendly
* Update the parameter to the correct name
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-11-26 08:03:22 +01:00
Christopher Fenner
eff1933a61
refactor(checks): use warnings-ng plugin ( #2398 )
...
* use recordIssues
* fix c&p issue
* simplify code
* fix
* add quality gates
* change qgates to TOTAL_HIGH
* remove pattern for tasks
* use TOTAL_ERROR for checkstyle
* fix indent
* use deprecated threshold parameters
* debug messages
* transform legacy qgates
* fix
* adjust test cases
* correct qgates
* correct legacy thresholds
* fix typo
* remove deprecated defaults
* add test case
* log use tool
* add notification
* remove deprecated defaults
* remove deprecated parameter
* adjust legacy threshold message
* add q gates on error and high for all check tools
* Apply suggestions from code review
* adjust test cases
* remove duplicate assert
* Fail if aggregation is still defined
* update docs
* fix indent
* Update documentation/docs/steps/checksPublishResults.md
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
2020-11-25 15:39:33 +01:00
Florian Wilhelm
55f25ace49
npmExecuteScripts: install dependencies by default ( #2376 )
2020-11-24 18:15:30 +01:00
Daniel Kurzynski
8653780cf6
Stash also original jar ( #2387 )
2020-11-17 12:04:25 +01:00
Christopher Fenner
81c8553d6a
refactor(hadolint): implement step in GO ( #1169 )
...
* initial commit of yaml file
* initial commit for HaDoLint in GO
* add helper function to load file from url
* load config file
* write report information to disk
* comment the code
* refactor groovy code
* remove download function from FileUtils
* use http.Downloader
* rename step files
* update generated files
* update generated files
* remove duplicate commands
* add credentials for config url
* add generated test file
* reuse piperExecuteBin functions
* correct step name
* update go step
* deactivate test
* fix import
* use differing go step name
* rename step
* correct result publishing
* correct command name
* expose tls insecure flag
* hand through error
* disable tls verification
* fix tls disabling
* use credentials
* mow
* reformat
* add qgate only if set
* correct report name
* remove old defaults
* add qgate to defaults
* handle report name
* restore default
* remove unused step config
* use piperExecuteBin
* remove obsolete type
* add test cases
* remove groovy tests
* move client parameter handling to run function
* use custom interfaces and mockery
* remove commented code
* correct struct names
* rename parameter dockerfile
* add further asserts
* cleanup
* change file permission to read/write
* remove tokenize
* add further comments
* init http client only if necessary
* add todo
* Revert "rename parameter dockerfile"
This reverts commit 2a570685b8
.
* add alias for dockerfile parameter
* correct test case
* Apply suggestions from code review
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
* add comment about mock assertions
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
2020-11-16 15:14:54 +01:00
Srinikitha Kondreddy
0234e4908c
Invalidate cache for neo deployments ( #2209 )
...
* Add additional parameters for invalidating cache
* Fetch bearer token
* Fetch x-csrf token
* Add echo for testing
* Add echo
* Add another echo
* Check status
* Debug
* Clean up
* Throw exception
* Code review changes
* Review changes
* Add test
* Fix tests
* Fetch bearer token
* Fetch x-csrf token
* Add echo for testing
* Add echo
* Add another echo
* Check status
* Debug
* Resolve conflicts
* Resolve conflicts
* Code review changes
* Review changes
* fix conflicts
* Fix indent
* Add new parameter to define portal landscape region
* Add default value for new param
* Fix test
* Remove example
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
* Check cache invalidation for html5 apps
* Add nesting
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
* Add docu for invalidating cache for html5 apps (#2306 )
* Add docu for invalidating cache for html5 apps
* Improve content
* Docu review changes
* Remove heading
Co-authored-by: Sarah Lendle <44202907+SarahLendle@users.noreply.github.com>
* Update documentation/docs/steps/neoDeploy.md
Co-authored-by: Sarah Lendle <44202907+SarahLendle@users.noreply.github.com>
Co-authored-by: Sarah Lendle <44202907+SarahLendle@users.noreply.github.com>
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
Co-authored-by: Sarah Lendle <44202907+SarahLendle@users.noreply.github.com>
2020-11-09 12:15:00 +01:00
Gordon Franke
a19cbd63ee
change slack color to reflect all states ( #2320 )
...
I have used the colors from blue ocean.
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-11-05 14:16:00 +01:00
Stephan Aßmus
8007a1a6c6
New step gatlingExecuteTests, used in Performance stage ( #2298 )
...
Co-authored-by: Daniel Kurzynski <daniel.kurzynski@sap.com>
2020-11-03 17:42:02 +01:00
Daniel Mieg
7639175def
Add commit to clone and pull ( #2258 )
...
* commit ID for clone
* commit ID for clone
* Remove old default values
* Add commitID to Pull
* Print http response on debug level
* Fix tests
* Adapt tests
* Shorten sleep
* Fix clone tests
* Add ignore commit option
* Adapt tests
* Adapt docu
* Implement feedback
* fix codeclimate issue
2020-11-02 14:17:13 +01:00
Marcus Holl
4f9bc698f9
ABAP deploy to front end server via existing fiori upload facilities ( #1939 )
...
The approach used up to now did not (... never) work since the uploaded content was always assigned to the `$TMP` package. In the meanwhile there is some fiori tooling available for managing such uploads.
Now we re-use this fiori tooling.
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
2020-10-21 12:04:11 +02:00
Daniel Kurzynski
c42299177e
Also stash war files as build result ( #2196 )
2020-10-16 11:27:50 +02:00
Marcus Holl
5f5372aa6f
Revert "allow multicloud deployment to run in current workspace ( #2031 )" ( #2137 )
...
This reverts commit 32fd89c664
.
Commit mentioned above has been merged in order to circumvent
the issue which has been resolved by commit 0a17ed56
. Since this
issue is now resolved and since there is no other known use case
for running deployments explicitly in parallel we decided to remove
that flag again.
2020-10-09 14:52:07 +02:00
Alejandra Ferreiro Vidal
32fd89c664
allow multicloud deployment to run in current workspace ( #2031 )
...
* allow run in current workspace
* add documentation
* add tests
* apply review changes
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
2020-09-23 10:33:18 +02:00
Kevin Hudemann
e210c5c40a
Extend testsPublishResults step to support publishing of HTML reports ( #1976 )
...
This change extends the testsPublishResults step to support publishing
of HTML reports using the HTML publisher plugin. This change is a
preperation for the migration of frontend unit tests as already existing
in the SAP Cloud SDK Pipeline to the
piperPipelineStageAdditionalUnitTests.
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
2020-09-02 17:04:59 +02:00
Dominik Lendle
25c599b03b
Implementing cfCreateService in Golang ( #1649 )
...
* Adapted documentation
* Adapted documentation
* Adapted documentation
* Adapted documentation
* Adapted documentation
* Added CFDeleteServiceKeys
* Added ServiceKey deletion tests
* added cfServiceKeys flag explanation to documentation
* removed trailing spaces from documentation
* resolving conflicts
* Changed deletion message an variable naming
* Changed tests
* Changed tests
* Changed tests
* Changed tests
* Changed CloudFoundryDeleteServiceOptions to options
* Changed CloudFoundryDeleteServiceOptions to options
* Minor changes
* Minor changes
* Changed variable naming
* Changed error handling
* Changed error handling and logging
* Changed documentation
* Simplified code
* Fixed CodeClimate issues
* Changed from returning err to nil where no errur returned needed
* Add cloudFoundryCreateServiceKey Go Step
* Changed Groovy File
* Changed aliases
* Removed unneccessary parts
* Minor changes
* Minor changes
* Adapted documentation
* Adapted tests
* Adapted Groovy File
* Changed Groovy file
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Removed Groovy Tests for cfCreateServiceKey
* Minor changes
* Added ATC Check YAML
* Added ATC Check generated files
* Added test class
* Added abapEnvironmentRunATCCheck
* Minor changes
* Minor changes
* Changed groovy
* Minor changes
* Changed groovy
* Changed groovy
* Minor changes
* Adapted Groovy imports
* Adapted Groovy imports
* Adapted Groovy imports
* Adapted Groovy
* Getting ATC results
* Changed error message
* changed groovy
* removed trailing spaces
* Added login check
* Minor changes
* Added step to whitelistScriptReference
* Added ATC error message handling
* Added groovy file
* Added step to groovy tests
* corrected metadata file
* Debugging
* Debugging
* Added yaml config parameter for ATC run
* Adapted file location of ATC run config to jenkins specific location
* Implementing universal pipeline logic for finding yaml config regardless of pipeline
* Changed error handling for reading config yaml file
* Changed atcrunconfig alias
* minor changes
* Minor changes
* Minor changes
* Changed back to dynamic file reading
* Minor changes
* filepath changes
* Removing CF Login
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Minor changes
* Removed whitespaces
* Added CF functions unit tests
* Added invalid parameter handling
* Removed package and SC flag
* Minor changes
* Changed tests
* Changed tests
* Changed tests
* Minor changes
* Changed tests
* removed unnecessary logout
* Added documentation
* Changed docu
* Changed docu
* Changed docu
* Changed docu
* Changed docu
* Changed docu
* Changed docu
* Changed docu
* Changed docu
* Changed docu
* Removed trailing spaces
* Added newline at end of file
* code climate fixes
* code climate fixes
* code climate fixes
* Minor changes
* Minor changes
* Minor changes
* Changed tests
* Test changes
* Splitted Cloud Foundry functions into two classes
* Removed two steps from whtielistScriptReference
* removed atcrunConfig alias
* issue fixes
* Changed docu
* Changed docu
* Changed docu
* Removed trailing spaced from docu
* Changed docu
* Go generator run
* Issue fixes
* Remove unnecessary imports
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
* Update whitelistScript
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
* Adding piperutils for writing xml file
* Persisting ATC Results with piperutils
* Set failonMissingReports to true
* Refactoring for CodeClimate
* Changed result file name
* Changed credentials aliases
* changing secret name
* Removing trailing spaces
* Added secret name and alias to docu
* PR commit
* Go generator
* Code Climate fixes
* Code Climate fixes
* Code Climate fixes
* Removed existing groovy tests
* Added cfCreateService to fieldRelatedWhiteList
* Remarks
* added file checking
* tests adapted
* Changed to execRunner
* Removed workingDir definition
* Removed workingDir definition
* Removed workingDir definition
* Added default
* Added aliases
* Changing to CFUtils Exec Runner
* Change defaults
* Removed trailing spaces
* Refactoring and test changes
* Added manifest file default & re-arranged defer func
* TestFiles creation added
* Changed alias values
* Corrected defer logout err return
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
Co-authored-by: Daniel Mieg <56156797+DanielMieg@users.noreply.github.com>
2020-08-19 10:17:27 +02:00
Kevin Hudemann
ce96c379ef
Add mavenExecuteIntegration and writeTemporaryCredentials to piperPipelineStageIntegration ( #1927 )
...
This change add the support for running integration tests using the
recently introduced step mavenExecuteIntegration in
piperPipelineStageIntegration. In addition, capabilities to provide
temporary credentials to these tests is added using the
writeTemporaryCredentials step.
2020-08-14 15:22:05 +02:00
Kevin Hudemann
ebfb208528
Add report handling to npmExecuteEndToEndTests ( #1791 )
...
This change adds the missing report handling to npmExecuteEndToEndTests
step. In addition, it extends the testsPublishResults step to support
cucumber test results.
2020-07-14 13:33:49 +02:00
Oliver Nocon
111e4de8c3
kanikoExecute - golang version ( #1765 )
...
* kanikoExecute golang version
* update entrypoint
* update entrypoint
* update entrypoint
* update entrypoint
* update entrypoint
* add command
* include PR feedback
* remove trailing spaces
* remove defaults for certificates
* Update generated file
2020-07-10 08:07:59 +02:00
Kevin Hudemann
c8ca3ea522
Add mta extension credentials handling to cloudFoundryDeploy step and infer deployTool default from buildTool ( #1761 )
2020-07-06 16:16:48 +02:00
Daniel Kurzynski
e6ab6f815f
Default source for maven deployments to neo ( #1755 )
2020-07-03 09:56:14 +02:00
Daniel Kurzynski
0f6a48bede
Remove defaults for mtaBuild ( #1734 )
...
Defaults should only be defined in the metadata file.
2020-07-01 10:14:59 +02:00
Thorsten Duda
30302ff47a
mbt default version update ( #1704 )
...
With devxci/mbtci:1.0.14.1 docker image, UI5 projects
generated from Business Application Studio can be build
out of the box.
2020-06-25 12:16:02 +02:00
Alejandra Ferreiro Vidal
3d9606022f
add parallel execution to multicloudDeploy ( #670 )
...
* add parallelExecution to multicloudDeploy
adds parallel execution to the step multicloudDeploy
* add log
* fix warning
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
2020-06-24 10:56:36 +02:00
Daniel Kurzynski
654dea4b3e
Load global extensions in setupCommonPipelineEnvironment ( #1688 )
...
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
Co-authored-by: Florian Wilhelm <florian.wilhelm02@sap.com>
2020-06-22 17:52:11 +02:00
lydiazcheng
59f3cddd43
TMS: extend upload mta ext descriptor to node ( #1635 )
...
* add APIs for getNodes, getExtDescriptor, putExtDescriptor and uploadExtDescriptor
* add new params and extend the logic to enable upload or update extension descriptor to node
* extends unit tests
Co-authored-by: Zihe Cheng <zihe.cheng@sap.com>
Co-authored-by: Marcus Holl <marcus.holl@sap.com>
2020-06-22 11:34:10 +02:00
Oliver Nocon
8e74952166
Switch Detect scan to golang implementation ( #1673 )
...
* Switch Detect scan to golang implementation
* update workingDir
* use universal container as default
* Switch to official curl image
* fix code climate issue
* switch default image
* update docker options
* update CommonStepsTest
* remove invalid groovy test
* clean up defaults
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-06-16 17:21:59 +02:00
Florian Wilhelm
c490ce9211
Use go-based npmExecuteScripts, mavenBuild in buildExecute ( #1622 )
2020-06-04 17:53:06 +02:00
philippthiele
4788b80f47
add -f option to kanikoExecute containerPreparationCommand remove ( #1539 )
...
* add -f option do kaniExecute containerPreparationCommand remove
* Update KanikoExecuteTest.groovy
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-05-13 17:41:32 +02:00
Stephan Aßmus
75100ecbb3
Merge duplicated jenkinsKubernetes keys in defaults ( #1514 )
2020-05-07 09:31:52 +02:00
Florian Wilhelm
0a196af04c
Allow configuration of log format, change default to fixed-width ( #1432 )
2020-05-06 12:17:56 +02:00
Daniel Kurzynski
0e4bff7aa6
Configure default jenkins agent for kubernetes ( #1412 )
2020-04-16 15:08:09 +02:00
Christopher Fenner
c190deee44
refactor(sonar): switch to Sonar scan in GO ( #1320 )
...
* use sonar go in groovy
* use SONAR_TOKEN
* only use owner/repo if both are set
* trim version to major version digit
* fix code climate issues
* remove Sonar defaults
* use sonar go step
* use SONAR_TOKEN
* use certs from parameters
* use docker workspace & options
* add instance parameter
* implement branchName
* implement branchName
* remove duplicate default
* update docs
* fix TODOs
* remove merge mess
* fix code climate issue
* address comments
* respect custom defaults and custom config file name
* fix typo
* remove obsolete test cases
* disable CommonStepChecks
* check step config instead of context config
* remove TODOs
* respect jenkins PR envvars
* use value from stepConfig
* Update vars/sonarExecuteScan.groovy
* rename options to config
* correct type for options
* add test cases
* log sonar.options in debug message
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-04-08 12:55:46 +02:00
Daniel Kurzynski
04cdf4b2fe
Always pull sidecar images by default ( #1317 )
2020-03-25 20:03:17 +01:00
Christopher Fenner
c74183771a
feat(mta): update cloud MTA build tool to v1.0.10 ( #1310 )
2020-03-24 08:51:42 +01:00
Christopher Fenner
5b344b8b7a
use sonar-scanner 4.3.0.2102 ( #1271 )
2020-03-16 10:40:38 +01:00
Stephan Aßmus
c628d208c7
Implement archiving the debug report as step ( #1152 )
...
* Implement archiving the debug report as step
2020-02-07 16:30:08 +01:00
Marcus Holl
61442371df
Switch the default for the mta build toolset ( #1157 )
2020-02-07 12:20:46 +01:00
Sven Merk
59e9d897bf
feat(hadolint): enable correct handling of multiple scan results ( #1145 )
...
* Add missing parameter
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* fix code climate issues
* Update default_pipeline_environment.yml
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
* Update hadolintExecute.groovy
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-02-04 16:36:09 +01:00
Christopher Fenner
92441577d8
fix(NPM): change NodeJS image to LTS ( #1069 )
...
* change NodeJS image to current LTS
* Update default_pipeline_environment.yml
* Update SonarExecuteScanTest.groovy
* use node:lts-stretch image
2020-01-29 11:17:56 +01:00
Christopher Fenner
686235613c
fix(sonar): run sonar scan in NodeJS container ( #1078 )
...
* fix(sonar): run sonar scan in NodeJS container
* fix typo
* adapt tests
2019-12-20 10:51:33 +01:00
Daniel Mieg
23d7058fdd
Authentication via Cloud Foundry Service Key ( #1034 )
2019-12-16 21:02:30 +00:00
Daniel Mieg
2ad57f3d19
Add step cloudFoundryCreateServiceKey ( #989 )
2019-12-02 14:02:51 +01:00
Christopher Fenner
d627b39ba0
fix(mta): update docker image to fix npm.sap.com ssl issue ( #1021 )
...
* fix(mta): update docker image to fix npm.sap.com ssl issue
see https://github.com/SAP/cloud-mta-build-tool/issues/611
2019-11-29 10:03:24 +01:00
Christopher Fenner
4766f102c3
fix(mta): use updated container with provided grunt-cli ( #1009 )
2019-11-28 09:10:03 +01:00
Christopher Fenner
5cec21fe3b
fix: mtaBuild: avoid parameter clash ( #1001 )
...
* fix: mtaBuild: avoid parameter clash
* correct typo
* rename parameter to mtaBuildTool
2019-11-22 12:31:32 +01:00
Christopher Fenner
74d6df71ef
feat: enable mtaBuild to use cloudMBT ( #970 )
...
* enable mtaBuild to use cloudMBT
* change name to cloudMbt
* change name to cloudMbt
* use v1 of cloudMBT
2019-11-21 14:56:40 +01:00
Thorsten Duda
2568316c6e
Merge branch 'master' into pr/httpsPushArtifactSetVersion
2019-11-14 11:13:47 +01:00
Christopher Fenner
a89361449e
sonarExecuteScan: update to Sonar scanner 4.2.x ( #820 )
...
* Update to Sonar scanner 4.x.x
* switch to sonar-scanner 4.2.0
2019-11-13 09:24:36 +01:00
Shanuson
8f723caa31
Fix bug and added documentation for cloudFoundryCreateService step ( #967 )
...
* fix bug with wrong plugin parameter used
* provided default value for stash-content
* added documentation for step
2019-11-12 10:29:08 +01:00