Commit Graph
20 Commits
Author SHA1 Message Date
Oliver FeldmannandGitHub 713a5fe319 Remove return value from mtaBuild docu
There is no return value coming from mtaBuild anymore.
2018-10-24 14:45:37 +02:00
Oliver FeldmannandMarcus Holl 0a58ad6e1c Deploy mkdocs when merging to master
Only changes to master and PRs starts the travis job.
On PR Maven tests and mkdocs build for warnings and error check is done.
On change on master Maven is **not** run and the documentation is built
and deployed using a deploy key. The encrypted deploy key is not part of
this commit, it needs to be provided by an admin for this repository.
2018-03-12 09:58:32 +01:00
Oliver FeldmannandMarcus Holl ec9895ec3e Improve fileExists mock
Before this commit the fileExists mock was not doing the same as the
real fileExists method. To stay close to reality we changed it construct
the absolute path and check for that when the fileExists method is
called.
Refactored to archiveName instead of archivePath, as this makes more
sense now.
2018-01-25 08:48:38 +01:00
Oliver FeldmannandMarcus Holl 58d3907093 Use fileExists to check whether archivePath really exists
When running on a slave we have to use the Pipeline method fileExists,
using the File class' exist on the absolute path fails.
The neo deployment uses the relative path as well.
The fileExists method is mocked with LesFurets.
2018-01-24 13:11:04 +01:00
Oliver Feldmann 9fe6d041f8 Cache pip and maven dependencies
To avoid downloading the same things over and over we cache
`$HOME/.cache/pip` for pip and `$HOME/.m2` for maven dependencies.
2017-12-21 15:29:06 +01:00
Oliver Feldmann 613b2ad61d Build docs only for Pull Requests
The check whether the documentation build includes errors or warnings is
only necessary as a voter on the PR.
2017-12-21 15:28:36 +01:00
Oliver Feldmann 1f28e870fe Build documenation with mkdocs
To find errors in the documentation it is build with mkdocs usind strict
mode. Thus warnings also abort the travis build.
2017-12-21 14:48:01 +01:00
Oliver Feldmann a2708763ee Install mkdocs and material theme using pip
To build the documentation mkdocs, a python package, is necessary. The
material theme is used and also needs to be installed.
Pass PEP370 --user to pip install, otherwise root privileges are needed.
Maven needs to be executed explicitely, as we are modifying the script
lifecycle phase.
2017-12-21 14:46:27 +01:00
Oliver FeldmannandGitHub b81ee87218 Merge pull request #37 from o-liver/DocuLink
Correct reference to commonPipelineEnvironment.md
2017-12-14 09:54:05 +01:00
Oliver Feldmann 74f63a1936 Correct reference to commonPipelineEnvironment.md
In configurationLoader.md the reference to commonPipelineEnvironment.md
is wrong and will give you a 404, because commonPipelineEnvironment.md
lies in a separate folder called steps.
The change was already deployed to the gh-pages!
2017-12-13 14:35:23 +01:00
Oliver FeldmannandGitHub 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
Oliver FeldmannandGitHub 5c37d62343 Merge pull request #19 from o-liver/contributing
Minor changes to CONTRIBUTING.md
2017-12-05 14:39:01 +01:00
Oliver FeldmannandGitHub 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
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
Oliver FeldmannandMarcus Holl b4d17fa929 Documentation for 'centralPipelineLoad' 2017-12-04 10:51:42 +01:00
Oliver FeldmannandMarcus Holl 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 FeldmannandMarcus Holl 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