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

1768 Commits

Author SHA1 Message Date
Marcus Holl
b54fd85755
Merge pull request #35 from marcusholl/pr/FixDefaultValueCacheGetInstance
fix default value cache get instance
2017-12-13 08:47:53 +01:00
Marcus Holl
8fc4ae7cdc Avoid getting the unflattened default values
Caused by the missing nonCps annotation the unflatted configuration
tree of all the default values was returned.

After adding the nonCps annotation we get only the default for
either stages or steps and only for the required step/stage.
2017-12-12 16:37:46 +01:00
Marcus Holl
0d2bb41f34 Avoid strange behaviour with return value from DefaultValueCache getinstance 2017-12-12 15:44:37 +01:00
Alejandra Ferreiro Vidal
810f4ed0f1 add info about working with forks 2017-12-06 17:29:16 +01:00
Oliver Feldmann
14e43d9e0e
Merge pull request #17 from o-liver/documentation
Documentation overhaul
2017-12-06 14:34:50 +01:00
Oliver Feldmann
b4a4f135fa Template overhaul
Step template improvements.
Addition of script template.
2017-12-06 13:24:19 +01:00
Oliver Feldmann
8e70c72ea9 Documentation improvements
Slight improvements on various md files.
Deletion of method-based commonPipelineEnvironment documentation as it
is not used.
2017-12-06 13:24:01 +01:00
Daniel Kurzynski
22ee06dc17 Enable configuration via yaml file + mavenExecute as example (#18)
* Enable configuration via yaml file
* Add documentation 
* Add tests
2017-12-06 12:03:06 +01:00
Oliver Feldmann
5c37d62343
Merge pull request #19 from o-liver/contributing
Minor changes to CONTRIBUTING.md
2017-12-05 14:39:01 +01:00
Oliver Feldmann
026e0d3f29
Merge pull request #31 from o-liver/executePipeline
Remove node from test pipeline of executePipeline unit tests.
2017-12-05 14:20:47 +01:00
Oliver Feldmann
772fc50b50 Fix CONTRIBUTING.md
Fix some spelling errors.
2017-12-05 14:18:20 +01:00
Alejandra Ferreiro Vidal
98a08968af
Merge pull request #30 from marcusholl/pr/removeGetGitCoordinates
Remove Utils#retrieveGitCoordinates
2017-12-05 14:15:10 +01:00
Oliver Feldmann
f72d93ae2c Remove node from test pipeline
node() is not necessary in the LesFurets unit tests. This is especially
misleading for the pipelineExecute step, as the step itself opens a node
closure when loading a pipeline. If used like this in Jenkins
unnecessary executors will be used.
2017-12-05 13:33:03 +01:00
Marcus Holl
4a9ec0b20c
Merge pull request #29 from 1084565/master
Build Result Transparency
2017-12-05 09:10:10 +01:00
Marcus Holl
44a3c8f571 Remove Utils#retrieveGitCoordinates
The methods a related to an outdated use case

It was intended for getting the coordinates of a payload repo when the
pipeline repo is specified in the pipeline job.

That has been changed so that the pipeline (or at least a stub pipeline)
is now always contained in the payload repo and the payload repo is
always specified in the pipeline job itself.
2017-12-04 17:06:35 +01:00
Alejandra Ferreiro Vidal
f9ebbfb835
Merge pull request #28 from alejandraferreirovidal/cleanPom
pom clean up
2017-12-04 16:27:36 +01:00
Alejandra Ferreiro Vidal
b0651030c7 clean up pom.xml 2017-12-04 14:15:47 +01:00
Christoph Szymanski
56d08bbb5a
Integrate Travis Build Badge 2017-12-04 14:09:52 +01:00
Marcus Holl
1245528cfa
Merge pull request #22 from marcusholl/pr/fixQuotationInsideNeoDeploy
fix quotation inside neo deploy
2017-12-04 12:12:08 +01:00
Alejandra Ferreiro Vidal
c8c0352058
Merge pull request #24 from alejandraferreirovidal/docuIssue
add further information to library step
2017-12-04 11:08:14 +01:00
Marcus Holl
02d9ed6239 Merge remote-tracking branch 'github/master' into HEAD 2017-12-04 11:05:42 +01:00
Marcus Holl
9d3d6b3f1e
Merge pull request #16 from o-liver/centralPipelineLoadStep
Central pipeline load step
2017-12-04 10:59:29 +01:00
Alejandra Ferreiro Vidal
8cc797d53c add further information 2017-12-04 10:53:16 +01:00
Marcus Holl
36837ad3b8 Prevent pointing to pipelineExecute in case of an failure inside foreign pipeline
In case there is an error in another pipeline step inside a foreign pipeline we got
nevertheless an error explaining there is an issue inside the pipeline load step.
2017-12-04 10:51:42 +01:00
Marcus Holl
15a7e8e3f8 Explain the use case for pipelineExecute 2017-12-04 10:51:42 +01:00
Marcus Holl
88ac3ae43e Rename externalPipelineExecute to pipelineExecute 2017-12-04 10:51:42 +01:00
Marcus Holl
bbe799fd19 Rename centralPipelineLoad step to externalPipelineExecute 2017-12-04 10:51:42 +01:00
Marcus Holl
67630d829b change naming of parameter holding the path to the pipeline script. 2017-12-04 10:51:42 +01:00
Marcus Holl
13139da01e Use a dedicated node() instead of a temporary directory. 2017-12-04 10:51:42 +01:00
Oliver Feldmann
b4d17fa929 Documentation for 'centralPipelineLoad' 2017-12-04 10:51:42 +01:00
Oliver Feldmann
a6df3b3053 'centralPipelineLoad' unit tests
Mocking with LesFurets. Check that everything is at the right place.
1. Test with only the mandatory parameter 'repoUrl'.
1. Test setting all available parameters.
1. Test with no parameters throws Exception for missing mandatory
parameter 'repoUrl'.
2017-12-04 10:51:42 +01:00
Oliver Feldmann
5d5a82929c centralPipelineLoad step
A more convenient way to checkout the project sources. The idea is to
have a Jenkinsfile in the payload repository that only loads the shared
library and then runs this step. This step in turn loads a Jenkinsfile
from another repository.
The repo url, branch, Jenkinsfile path and credentials ID can be
provided to the step. The Jenkinsfile is first checked out to a
temporary folder, before it is loaded.
The payload repo must include a Jenkinsfile to be loaded with this
approach.
2017-12-04 10:51:42 +01:00
Alejandra Ferreiro Vidal
c47ff499fe
Merge pull request #25 from SAP/travis
Create .travis.yml to build project
2017-12-04 10:30:16 +01:00
Christoph Szymanski
98d81c6d6e Create .travis.yml 2017-12-04 10:17:02 +01:00
Marcus Holl
d3efa3edb7 [fix] missing quotes in neoDeploy shell exectution
Without proper quotation characters with a special semantics
on shell level (e.g. "${}", "!", """ gets escaped on shell level
before handed over to the neo tool.

neoExecutable is surrounded by double quotes since we may have
shell ${variables} inside the groovy variable.

All other variables (user, host, account, password) are surrounded
by single quotes since we do not expect to be variables used here.

The neoExecutable is
2017-12-01 09:51:54 +01:00
Marcus Holl
e9a17aa41c Fix mail notification
- send "build failed" mail only when an exception has been received.
 - provide a non empty mail message, since an empty mail body causes the build to fail.
2017-11-22 14:16:28 +01:00
Marcus Holl
a72cd278b4
Merge pull request #5 from marcusholl/pr/piperTestBase
piper test base
2017-11-21 16:42:22 +01:00
Alejandra Ferreiro Vidal
72b185e807 remove closure in withPipeline(p) 2017-11-21 16:27:01 +01:00
Alejandra Ferreiro Vidal
5ca3d39b02 adapt setUp method 2017-11-21 14:27:05 +01:00
Alejandra Ferreiro Vidal
13e800f678
Merge pull request #14 from alejandraferreirovidal/docuFix
add missing grave accent
2017-11-21 10:04:00 +01:00
Alejandra Ferreiro Vidal
7dd5d894d1 add missing grave accent 2017-11-20 18:22:41 +01:00
Alejandra Ferreiro Vidal
829997182a
Merge pull request #9 from alejandraferreirovidal/utilsTestGetMandatoryParameter
getMandatoryParameter() unit tests
2017-11-20 11:40:41 +01:00
Ken Arnold
a23f3e82fe Update mkdocs.yml to MkDocs 0.17.0 format
MkDocs 0.17 features theme customization options [1] which are picked up
supported with mkdocs-material 2.0.1 [2] and later. These are now the
minimum required versions to compile our gh-pages documentation.

[1] http://www.mkdocs.org/about/release-notes/#major-additions-to-version-0170
[2] https://github.com/squidfunk/mkdocs-material/releases/tag/2.0.0
2017-11-17 17:37:09 +01:00
Alejandra Ferreiro Vidal
d91d01f0da getMandatoryParameter() unit tests 2017-11-17 14:40:56 +01:00
kbarnold
954dddc78d
Merge pull request #10 from kbarnold/RestructureReadme
Restructure README.md
2017-11-17 11:02:00 +01:00
Ken Arnold
0c3f7d5f24 Restructure the README.md and move content from gh-pages entry page 2017-11-17 10:42:40 +01:00
Marcus Holl
9d59ba16d9 beautify inline script blocks
idents only
2017-11-16 14:09:48 +01:00
Marcus Holl
5757acb15e createPipeline naming improved to defaultPipeline. 2017-11-16 13:50:38 +01:00
Marcus Holl
a64d8e78f1 Make base class working for windows also. 2017-11-16 13:47:00 +01:00
Marcus Holl
ec75fca54d
Merge pull request #7 from OliverNocon/master
Added basic Jenkins pipeline
2017-11-15 10:44:59 +01:00