Marcus Holl
063a1dc3fc
Back commonPipelineEnvironment step by shared class
...
Each pipeline step comes with its own instance of a commonPipelineEnvironment.
Properties stored on one instance was not shared with the other instances.
Now we strip down the commonPipelineEnvironment step and forward basically
everything to a shared singleton instance.
With that approach all instances of commonPipelineEnvironment shares the
same data and can now be really used for information exchange between the steps.
Before that change only the commonPipelineEnvironment instance associated with
the pipeline script itself could be used for that purpose.
2019-08-08 15:19:25 +02:00
Marcus Holl
77a8c54084
Remove stdout from unit test ( #787 )
...
in the majority of the cases there is nobody for reading stdout.
2019-08-06 14:21:57 +02:00
Marcus Holl
0c90da6638
Simplify code: failExecution can be replaced by closure raising exception ( #795 )
2019-08-06 13:12:59 +02:00
Marcus Holl
e954e3b629
unified behaviour for shell call rule ( #794 )
...
* Ensure closure gets called when neither returnStdout nor returnStatus are set
In this case we do not have a return value, but in case we execute a closure we should execute the closure.
With that it is possible to raise an exception from the closure.
* [refactoring] unify usage of unify method call
* Remove dead code.
Coding after uncondition throw exception statement does not get executed.
* Ensure script rule behaves the same whan called with string and with map.
2019-08-02 17:05:49 +02:00
Oliver Feldmann
af5c16ef46
setupCommonPipelineEnvironment: support yaml config file ending ( #811 )
...
* Allow for yaml file ending
* Format code
2019-07-31 12:22:26 +02:00
Oliver Nocon
0c3e5f1ea9
use new unstable step to better visualize pipeline errors ( #804 )
...
With https://jenkins.io/blog/2019/07/05/jenkins-pipeline-stage-result-visualization-improvements/ it has been made possible to allow for a better visualization in case certain pipeline stages are 'UNSTABLE'
This is about using the new feature if available with a fall-back to old behavior.
2019-07-26 17:40:22 +02:00
Oliver Nocon
153dbf2a7f
githubPublishRelease - ensure proper JSON encoding ( #807 )
...
So far some special characters have not been properly encoded when creating a release.
This is addressed by using a new JsonUtils method now.
2019-07-26 14:03:20 +02:00
Sven Merk
b1b480a7e1
Merge branch 'master' into whitesourceExecuteScan
2019-07-19 14:28:26 +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 446a201ae44ae0bf6bcfedd17e583183ceaabfaa.
* Revert "use classloader"
This reverts commit a89648703239f8cf3da465bfa570500608dc14f2.
* 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
Marcus Holl
e50aa9d37a
Merge remote-tracking branch 'github/master' into HEAD
2019-07-18 10:21:25 +02:00
Sven Merk
a5170bb878
Merge branch 'master' into whitesourceExecuteScan
2019-07-18 09:50:38 +02:00
Marcus Holl
2eeb5e05d4
Merge remote-tracking branch 'github/master' into HEAD
2019-07-18 09:44:59 +02:00
Oliver Nocon
be33eccbec
Take proper jnlp image as default for Kubernetes execution ( #759 )
...
* Take proper jnlp image as default for Kubernetes execution
Following changes are contained:
* removal of custom jnlp image as default
* allow customization of jnlp image via system environment
fixes #757
* add documentation
2019-07-17 12:01:24 +02:00
Sven Merk
7fbf7ffdf1
Merge branch 'master' into whitesourceExecuteScan
2019-07-17 10:56:47 +02:00
Oliver Nocon
31b9874eff
githubPublishRelease - properly handle situation where no release exists yet ( #792 )
...
correct error handling to properly take care of non-existing initial release.
2019-07-16 20:31:46 +02:00
Sven Merk
2d84095b2f
Update WhitesourceExecuteScanTest.groovy
2019-07-11 11:33:34 +02:00
Sven Merk
a945823075
Merge branch 'master' into whitesourceExecuteScan
2019-07-11 10:56:47 +02:00
Andre Pany
0e990446fc
whitesourceExecuteScan: Add scanType dub
2019-07-11 06:17:30 +02:00
Sven Merk
6d94fb652e
Adapt test
2019-07-09 12:16:41 +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
44f745d327
Rename dlang to dub ( #762 )
2019-07-03 11:27:07 +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
Oliver Nocon
d84e81f88e
merge duplicate test classes ( #760 )
2019-06-28 09:00:05 +02:00
Marcus Holl
5c3307d71b
Add hasSnippet
2019-06-27 12:20:59 +02:00
Marcus Holl
f6f1e0df5a
fileExists also with map
2019-06-27 11:12:53 +02:00
Oliver Nocon
3e46254701
dockerExecuteOnKubernetes - hide sensitive information ( #733 )
...
* dockerExecuteOnKubernetes - hide yaml by default
* hide step parameters to not leak sensitive parameter values into the log
* add more details to log output
2019-06-26 08:38:47 +02:00
Marcus Holl
ea5a3ed5ce
Merge remote-tracking branch 'github/master' into HEAD
2019-06-25 08:49:30 +02:00
Christopher Fenner
93e1796455
karmaExecuteTests: fix multi module execution ( #765 )
...
* add test case for multi module execution
* fix multi module issue
2019-06-24 15:29:32 +02:00
andre2007
36c029b344
Add dubExecute step ( #754 )
...
* Add dubExecute step
* Fix test
2019-06-19 16:52:18 +02:00
Oliver Nocon
79894bb36f
Fix docker versioning with registry port ( #686 )
...
Fix issue when retrieving version via tag in `FROM` section.
We also need to consider that the registry may contain a port.
* Update DockerArtifactVersioning.groovy
* add error message for missing image tag in FROM line
2019-06-19 13:00:56 +02:00
Oliver Nocon
d66607c31a
dockerExecuteOnKubernetes - support nodeSelector ( #747 )
...
support nodeSelector to run on dedicated nodes inside the Kubernetes cluster if required.
2019-06-19 12:26:16 +02:00
Thorsten Duda
13b1611a96
Fix review comment
2019-06-13 14:06:57 +02:00
Thorsten Duda
2257762c97
Fix tests
2019-06-13 13:51:57 +02:00
Oliver Nocon
e7cbf02b8e
dockerExecuteOnKubernetes - revert #739 ( #745 )
...
stashing .git directory had negative side-effects.
Solution would be to stash `.git` folder and unstash in `dockerExecuteOnKubernetes` only if required for a dedicated scenario.
2019-06-06 17:22:25 +02:00
Oliver Nocon
09086518e3
fix tests for dockerExecuteOnKubernetes ( #741 )
...
depending on the execution order tests may fail.
This solves this issue
2019-06-05 14:00:04 +02:00
Oliver Nocon
121b23fdaa
dockerExecuteOnKubernetes - stash also .git folder ( #739 )
...
Make sure that complete workspace is available in Kubernetes Pod.
So far e.g. git repository information were missing.
2019-06-05 11:24:32 +02:00
Sven Merk
111080cbfe
Add new step for Dockerfile linting ( #723 )
...
* Add new step for Dockerfile linting
* Add documentation template file
* Remove newlines
* Remove internal URL
* Rephrase comment
* Ammend stash
* Fix test
* move dockerImage to general
* use explicit curl options
* small changes
* small changes
* skip GIT blame
* First comments
* Also add remark to URL parameter
* Second set of comments
* Fix return code handling
* Switch type to set
* Revert unrelated changes
* Avoid modification of config
* add quality gate defaults
* Update hadolintExecute.groovy
* fix code climate issue
2019-06-04 08:01:43 +02:00
Marcus Holl
45a2bfc4f7
shift coding for preparing defaultValueCache into that class
...
rather than having it in a pipeline step.
With that we avoid going back from a class in the src folder into
a pipeline step (vars).
2019-05-31 14:26:25 +02:00
Oliver Nocon
f171f88b13
whiteSourceExecuteScan - allow passing projects via cpe ( #734 )
2019-05-29 13:22:16 +02:00
Marcus Holl
56b651dbe9
Merge remote-tracking branch 'github/master' into HEAD
2019-05-24 14:26:07 +02:00
Marcus Holl
c053dbca17
Add test null provided via signatur for extensions (also inside collection)
2019-05-24 13:55:29 +02:00
Alejandra Ferreiro Vidal
c21a4a6a3e
remove semikolons
2019-05-23 14:28:32 +02:00
Alejandra Ferreiro Vidal
79b79457f4
remove !#groovy header
2019-05-23 10:37:28 +02:00
Marcus Holl
4b61f362d2
Removing syntactically not needed commas which helps keeping diff smaller
2019-05-23 09:23:36 +02:00
Marcus Holl
ed155ece63
rename mtaExtensionDescriptos to extensions
2019-05-23 09:20:10 +02:00
Oliver Nocon
dbf110504e
Templates - Add advanced confirm stage ( #720 )
...
* Templates - Confirm Stage
* include feedback: allow customizing of default message
* adapt docs
* add default message
2019-05-22 10:42:59 +02:00
Marcus Holl
f87349e0fe
Condence dupliate code in test (file exists closure)
2019-05-22 08:49:27 +02:00
Marcus Holl
f6b165052a
Remove not needed test setup wrt file exists check
2019-05-22 08:11:28 +02:00