1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
Commit Graph

410 Commits

Author SHA1 Message Date
Thorsten Duda
09bf1fef96
Merge branch 'master' into J365 2019-12-06 08:51:20 +01:00
Stengel
4ba3928599 fix some codeclimate issues 2019-12-03 16:49:11 +01:00
Stengel
51375edc6f Apply suggestions from code review II 2019-12-03 16:26:35 +01:00
Roland Stengel
e6db069f62
Apply suggestions from code review
Co-Authored-By: SarahNoack <44202907+SarahNoack@users.noreply.github.com>
2019-12-03 16:11:07 +01:00
Stengel
470c8e1eb1 PCDES-365 - Describe Piper usage without cx-server
integrate into guided tour/mkdocs
remove static plugin list
2019-12-02 14:53:34 +01:00
Stengel
1c316dd44a PCDES-365 - Describe Piper usage without cx-server
Documentation only.
2019-12-02 14:26:16 +01:00
Daniel Mieg
2ad57f3d19 Add step cloudFoundryCreateServiceKey (#989) 2019-12-02 14:02:51 +01:00
Shanuson
77cd7e1025 Add link of step cloudFoundryCreateService to docu sidebar (#991) 2019-11-21 08:27:06 +01:00
Marius Lichtblau
62321e5ac4 Fix broken links in scenario documentation (#993)
Fixes broken links
2019-11-21 08:24:17 +01:00
Christoph Szymanski
b6e8987a31
Improve Documentation of fioriOnCloudPlatformPipeline
Feedback from @derGuteWolf : It's not obvious what fioriOnCloudPlatformPipeline actually does without looking into the source code.
2019-11-18 09:45:50 +01:00
Daniel Mieg
cac595b4bb Use credentialsId in step abapEnvironmentPullGitRepo (#974)
* Add option for credentialsId
* Remove mandatory username and password
* Add null checks
2019-11-12 17:40:59 +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
Oliver Nocon
da0935c0e5
Patch Urls (#929)
* Patch Urls
* fix test
2019-11-11 17:40:23 +01:00
Sven Merk
4e9fef433a
Update createDocu.groovy 2019-11-11 10:44:03 +01:00
Daniel Mieg
2e0bf3ac34 Add step to pull repository to ABAP in SAP Cloud Platform (#907) 2019-11-07 15:40:45 +01:00
Maximilian Lenkeit
06f63bc5de remove opa5 stash (#897)
* remove opa5 stash

* remove OPA5 test cases

* remove reference to opa5 stash
2019-11-07 11:02:27 +01:00
Thorsten Duda
6604a82eb1 remove double scenarios entry 2019-10-28 16:47:57 +01:00
Thorsten Duda
800eeffeae remove double navigation entry 2019-10-28 13:56:11 +01:00
Irina Kirilova
2f00e36682 correct typos in xsDeploy documentation (#921) 2019-10-28 12:05:52 +01:00
Daniel Kurzynski
462c293c9c User piper docker images (#920) 2019-10-25 17:49:54 +02:00
Christoph Szymanski
77e9b04e69 Document MTA (Java) Deployment Limitation (#854)
* Update neoDeploy.md

* Clarification + hint to trial limitation

* Mention Java explicitly

* Fix typo

* DeployMode MTA --> mta

according to other parts of the docu and according to the source code,
the deploy mode is in lower case.
2019-10-24 16:35:11 +02:00
Marcus Holl
945599c109
docu xsdeploy scenario (#840) 2019-10-23 11:03:17 +02:00
Marcus Holl
1a34d679d4
cm scenario: mta and node only required in case we are not running in… (#889)
* cm scenario: mta and node only required in case we are not running in a docker enviroment

* Update documentation/docs/scenarios/changeManagement.md

Co-Authored-By: SarahNoack <44202907+SarahNoack@users.noreply.github.com>

* Update documentation/docs/scenarios/changeManagement.md

Co-Authored-By: SarahNoack <44202907+SarahNoack@users.noreply.github.com>
2019-10-01 11:24:07 +02:00
Marcus Holl
afb33f78c7
cm client only required in case we are not running via docker (#890) 2019-09-30 12:54:16 +02:00
Marcus Holl
61a91b5f25
Add containerPushToRegistry to docu index (#862) 2019-09-25 11:00:35 +02:00
Marcus Holl
96365d29f7
Add buildExecute to docu index. (#860) 2019-09-25 08:55:51 +02:00
Florian Wilhelm
e041f45183
Streamline documentation to reflect project "piper" (#875) 2019-09-19 14:17:41 +02:00
Sarah Noack
1c8ba63053 Change node decription 2019-09-19 09:47:03 +02:00
Sarah Noack
a0bdc4f4c9 Add description in Jenkinsfile section 2019-09-18 14:56:41 +02:00
Sarah Noack
f5ff55e3df minor language editing 2019-09-18 14:15:02 +02:00
Sarah Noack
54cbc403c0 Add SAP Cloud Platform Transport Management scenario 2019-09-18 13:46:40 +02:00
Marcus Holl
e54f18e6bc
Introduce xsDeploy step (#749)
Introduce xs deploy
2019-09-11 13:42:38 +02:00
Marcus Holl
f199d79ca9
replace absolute links inside docu with relative links for ui5-sapcp scenario (#867) 2019-09-09 10:16:02 +02:00
Marcus Holl
6f8cd0f88c
more output from generator (#868) 2019-09-09 09:34:21 +02:00
TheFonz2017
41dcebb3a5 Variable Substitution in YAML Files (#852)
* Changes:
- New YamlSubstituteVariables step to substitute variables in YAML files with values from another YAML
- New Tests, that check the different substitution patterns.
- Added test resources, including various manifest and variables files.
- Improved usage of JenkinsLoggingRule
- Improved JenkinsReadYamlRule to properly reflect the mocked library's behaviour.
- Added a new JenkinsWriteYamlRule.

* Changes:
- added a Logger that checks a config.verbose flag before it logs debug messages.
- changed error handling to rethrow Yaml parsing exception in case of wrongly-formatted Yaml files.
- changed JenkinsWriteYamlRule to capture Yaml file details of every invocation of writeYaml. This allows sanity checks at end of tests, even if there were multiple invocations.
- adjusted tests.

* Changes:
- Removed javadoc-code blocks from API documentation since they are not supported.
- Removed skipDeletion boolean.
- Added a new deleteFile script which deletes a file if present.
- Added a new JenkinsDeleteFileRule to mock deleteFile script and optionally skip deletion for tests.
- Adjusted yamlSubstituteVariables script.
- Adjusted tests to include new JenkinsDeleteFileRule.
- Changed code that deletes an already existing output file to produce better logs.

* Changes:
- Turned yamlSubstituteVariables into a script that works purely based on Yaml data (not files).
- Added a new cfManifestSubstituteVariables that uses yamlSubstituteVariables under the hood but works based on files.
- Adjusted tests, and added new ones.

* Adjusted documentation and a few log statements.

* Changed documentation to no longer include javadoc code statements.

* Made mocking of deletion of a file a default. Adjusted tests.

* Changed signature of yamlSubstituteVariables' call method to return void.

* Changes:
- Fixed naming issues in deleteFile.
- Renamed Logger to DebugHelper.
- Fixed some documentation.

* Changed implementation of deleteFile not to use java.io.File - which is evil when using it for file operations.

* PROPERLY Changed implementation of deleteFile not to use java.io.File - which is evil when using it for file operations.

* Changes:
- Added tests for deleteFile script
- Changed JenkinsFileExistsRule to also keep track of which files have been queried for existence.

* Changes:
- Removed java.io.File usage from cfManifestSubstituteVariables and using fileExists instead now.
- Adjusted tests.

* Wrapped file path inside ticks to allow spaces in file path when calling deleteFile.

* Removed null checks of mandatory parameters, and resorted to ConfigurationHelper.withMandatoryProperty

* Fixed a NullPointer due to weird Jenkins / Groovy behaviour.

* Changes:
- Turned yamlSubstituteVariables step into a utils class.
- Added tests
- Adjusted cfManifestSubstituteVariables to use utils class instead of step.
- Adjusted tests
- Adjusted APIs of DebugHelper.

* Re-introduced log statement that shows what variables are being replaced and with what.

* Changing API of YamlUtils to take the script and config as input.

* Test

* Test

* Test

* Test

* Test

* Fixing issue.

* Fixing issue.

* Changes:
- Refactored DebugHelper and YamlUtils to make usage nicer and rely on dependency injection.
- Removed Field for DebugHelper and turned it into local variable.
- Adjusted classes using the above.
- Adjusted tests where necessary.

* Added link to CF standards to YamlUtils also.

* Add docu for step cfManifestSubstituteVariables.md

* Added documentation.

* Added missing script parameter to documentation. Some steps document it, some don't. Right now you need it, so we document it.

* Fixed some layouting and typos

* Beautified exception listing.

* Removed trailing whitespaces to make code climate checks pass.

* Trying to get documentation generated, with all the exceptions to markup one should not use.

* cosmetics.

* cosmetics, part 2

* Code climate changes...

* Inlined deleteFile step.

* Added two more tests to properly check file deletion and output handling.

* Changes:
- adjusted API to take a list of variables files, as does 'cf push --vars-file'
- adjusted API to allow for an optional list of variable key-value-maps as does 'cf push --vars'
- reproduced conflict resolution and overriding behavior of variables files and vars lists
- adjusted tests and documentation

* Added missing paramter to doc comment.

* Re-checked docs for missing paramters or params that have no counterpart in the method signature.

* Adjusted documentation.

* Removed absolute path usage from documentation.

* corrected documentation.

* Changed javadoc comment to plain comment.

* Turned all comments to plain comments.
2019-09-06 10:20:35 +02:00
Marcus Holl
211827ac93
Remove template docu page for piperPipelinStagePost (#863)
There are at the moment no stage docu pages. I guess this has been added too early
by mistake. Maybe we should remove this for now since it triggers a warning during docu generation.
2019-08-30 09:03:08 +02:00
Christoph Szymanski
b3764f4c1b
Link the SAP Cloud SDK (#861)
SAP Cloud SDK implements a more comprehensive CAP pipeline.

Co-Authored-By: Florian Wilhelm <florian.wilhelm02@sap.com>
2019-08-23 13:33:38 +02:00
Marcus Holl
62d1e23e6c
[fix] custom defaults passed as String instead of String is a List to DefaultValueCache (#817) 2019-08-08 08:52:21 +02:00
Sven Merk
136ffa8204
Update createDocu.groovy 2019-07-31 12:51:55 +02:00
Sven Merk
9358da7ccb Merge branch 'master' of https://github.com/SAP/jenkins-library into nevskrem-patch-1-local 2019-07-30 13:50:08 +02:00
Sven Merk
ca88e10a7b Ensure stacktrace being printed in case of errors 2019-07-30 13:41:58 +02:00
Marcus Holl
3d94ce4770
Add tmpUpload to mkdocs index page (#801) 2019-07-22 12:08:11 +02:00
tobiaslendle
cb245b1ce2 TMS integration (#782) 2019-07-18 15:06:11 +02:00
Christopher Fenner
5bf7cda940
add new step piperPublishNotifications (#652)
* add new step for notification publication

* add test cases

* add helper method

* correct import

* Update pom.xml

* add step to post section

* add step piperPublishNotifications

* move step to end of pipeline to gather all findings

* use handlePipelineStepErrors step

* use commonPipelineEnvironment

* correct reporting

* add configuration

* fix typos

* fix rule setup

* remove test scope

* add method to fetch full build log

* add methods for warnings-ng parser creation

* remove warnings plugin coding

* add default parser settings

* change parameter handling for parser creation

* adapt step

* fix parser creation

* use ParserConfig.contains

* use correct parameter name

* correct parser regex

* change issue creation

* use classloader

* fix typo

* Revert "fix typo"

This reverts commit 446a201ae4.

* Revert "use classloader"

This reverts commit a896487032.

* rename step to piperPublishWarnings

* extract recordIssuesSettings to defaults

* make addWarningsNGParser non-static

* remove node

* adjust test case

* add docs

* rename log file

* fix tests

* fix typos

* rename parameter

* add import for IOUtils

* check plugin activation

* add comment for class loader usage
2019-07-18 12:09:54 +02:00
Oliver Nocon
225cf2485b
Docker Pipeline - fixes and small adoptions (#779)
* buildExecute: Docker case - minor fixes
* properly care for empty `containerBuildOptions`
* verbose output wrt stashing
* add stage ordinals
* fix wrong script reference
* fix null reference
* adapt stage defaults and allow bats tests
* propagate github org and repo
* add test for bats
2019-07-05 16:32:24 +02:00
andre2007
8f1b3e376c pipelineStashFiles: Add *.d, *.di (#774) 2019-07-05 15:58:22 +02:00
andre2007
fc5cf8a54f pipelineStashFiles: Add dub.json/dub.sdl to buildDescriptors (#761) 2019-07-04 11:08:32 +02:00
Oliver Nocon
9e539e68ee
Piper pipeline - enhance stages (#755)
* fill PRVoting stage with content
* add prVoting stage incl. tests
* add Build stage incl. Tests
* add docs pages
* add additional unit test stage
* add acceptance stage and additional documentation ...
* add release stage content
* add promote stage
* add Security stage, fix defaults for Promote stage
* fix issue in doc generation
2019-07-03 10:13:26 +02:00
Oliver Nocon
5bb6d59753
Add step buildExecute (#527)
This step should serve as generic entry point in pipelines for building artifacts.

Build principle: build once.

Purpose of the step:
- build using a defined build technology
- store build result for future use in testing etc.
2019-07-02 13:00:36 +02:00
Marcus Holl
ea5a3ed5ce Merge remote-tracking branch 'github/master' into HEAD 2019-06-25 08:49:30 +02:00