Christopher Fenner
e90ffa6bf5
commonPipelineEnvironment: add propertiesMap ( #526 )
...
* add customPropertiesMap
* migrate transportRequestId to customPropertiesMap
* migrate transportRequestId to customPropertiesMap
* fix typo
* rename map
* rename method due to name clash
2019-04-10 10:56:36 +02:00
Alejandra Ferreiro Vidal
0565b5e63f
transportRequestCreate: generate docu
2019-04-09 22:12:21 +02:00
Alejandra Ferreiro Vidal
394f94c851
update documentation
2019-04-09 20:46:45 +02:00
Alejandra Ferreiro Vidal
a179dc6e3d
checksPublishResults: generate docu
2019-04-09 19:46:23 +02:00
Alejandra Ferreiro Vidal
86978becfc
remove utils.getMandatoryParameter()
2019-04-09 16:25:25 +02:00
Alejandra Ferreiro Vidal
ea71736939
testsPublishResults: generate docu
2019-04-09 15:19:33 +02:00
Alejandra Ferreiro Vidal
2af1b7c365
setupCommonPipelineEnvironment: generate docu
2019-04-09 13:58:35 +02:00
Alejandra Ferreiro Vidal
938d251a58
pipelineRestartSteps: generate docu
2019-04-09 13:18:51 +02:00
Alejandra Ferreiro Vidal
7a54118b2a
gaugeExecuteTests: generate docu
2019-04-09 11:59:08 +02:00
Alejandra Ferreiro Vidal
bde8f388be
containerExecuteStructureTests: generate docu
2019-04-09 11:12:38 +02:00
Alejandra Ferreiro Vidal
fa05b0bcb6
prepareDefaultValues: generate docu ( #634 )
2019-04-09 09:52:45 +02:00
Alejandra Ferreiro Vidal
998dd99cf5
batsExecuteTests: generate docu ( #605 )
2019-04-09 08:39:20 +02:00
Oliver Nocon
35ced01ffa
Avoid unwanted behavior when using resilience options ( #650 )
...
Certain steps should always fail, even though resilience option `failOnError=false` is used.
* Docker execution typically happens in another step. We should not hide errors here but rather handle their resilience in the step which uses `dockerExecute` and `dockerExecuteOnKubernetes`.
* Wrapper steps like `pipelineExecute`, `pipelineRestartSteps` should not hide errors. If an error occured this has to be considered as **intentional** and not hidden accidentially in case resilience option is switched on.
2019-04-08 20:10:54 +02:00
Marcus Holl
a92c01b640
Merge remote-tracking branch 'github/master' into HEAD
2019-04-05 11:19:24 +02:00
Oliver Nocon
4d945c8557
handlePipelineStepErrors - allow step timeouts ( #644 )
...
* handlePipelineStepErrors - allow step timeouts
This adds another resilience option:
A timeout can be configured for steps in order to stop step execution, continue with the pipeline while setting build status to "UNSTABLE"
2019-04-05 11:16:34 +02:00
Marcus Holl
4a756e1f4b
Merge remote-tracking branch 'github/master' into HEAD
2019-04-05 10:08:49 +02:00
Sven Merk
2ad3483233
Merge branch 'master' into whitesource-step
2019-04-04 22:19:16 +02:00
Alejandra Ferreiro Vidal
1e36df6a9c
fix docs generation ( #640 )
2019-04-04 17:01:30 +02:00
Sven Merk
259619f00f
Merge branch 'master' into whitesource-step
2019-04-04 16:06:51 +02:00
Sven Merk
097ee4179b
Chris' final comments + Scala config
2019-04-04 16:05:26 +02:00
Marcus Holl
bc253d0036
Merge remote-tracking branch 'github/master' into HEAD
2019-04-04 15:54:52 +02:00
Oliver Nocon
138656b49b
Allow resilient error handling in pipelines ( #583 )
...
* add resilience to error handling
* adapt documentation
* make ConfigLoader more resilient
2019-04-04 08:38:54 +02:00
Sven Merk
dfa47ac4c7
Merge branch 'master' into whitesource-step
2019-04-03 22:18:39 +02:00
Alejandra Ferreiro Vidal
316ea83423
fix doc build error
2019-04-03 15:44:59 +02:00
Marcus Holl
a011c67d09
No update to the stash content list from dockerExecuteOnK8S
...
When dealing with stashes in dockerExecuteOnKubernetes the global
stash list was updated from the step. This resulted in stashes
transported between the steps, which in turn resulted in having
old stashes unstashed in a pod later down the build. E.g.: mtaBuild
followed by neoDeploy: mtaBuild created a stash, the stash was
rememebered in the default stash list and re-used later on by
neoDeploy. Since the stash was created before the mtaBuild the
deployable was missing in the step.
2019-04-03 13:38:43 +02:00
Sven Merk
8fc6eb5219
Fix time displayed in report
2019-04-03 12:31:40 +02:00
Sven Merk
1fe05b8a56
Merge branch 'master' into whitesource-step
2019-04-03 12:19:34 +02:00
Alejandra Ferreiro Vidal
83ee7d0b28
mtaBuild: generate docu
2019-04-03 10:36:56 +02:00
Alejandra Ferreiro Vidal
92e895d34e
pipelineExecute: generate docu
2019-04-03 09:41:27 +02:00
Alejandra Ferreiro Vidal
d863bb3209
durationMeasure: generate config
2019-04-03 08:16:33 +02:00
Alejandra Ferreiro Vidal
3d0aa51380
mavenExecute: generate docu
2019-04-02 22:03:23 +02:00
Alejandra Ferreiro Vidal
0397f152dc
Merge branch 'master' into healthExecuteCheck
2019-04-02 21:01:29 +02:00
Christopher Fenner
d2a615fbc3
Update vars/healthExecuteCheck.groovy
...
Co-Authored-By: alejandraferreirovidal <alejandra.ferreiro.vidal@sap.com>
2019-04-02 21:01:09 +02:00
Alejandra Ferreiro Vidal
f77d9957a5
handlePipelineStepErrors: generate docu
2019-04-02 20:06:47 +02:00
Holger Partsch
b1d8032ee2
alpine does not support date option --universal ( #578 )
...
* alpine does not support date option --universal
Replaced by --utc as this seems to be more universal than --universal
* Fix unit tests after date parameter change
2019-04-02 15:59:33 +02:00
Holger Partsch
025ce5a88e
Don't use host port ( #579 )
...
* Stop using host ports
* Sort parameters alphabetically
* Fix warning format
2019-04-02 14:23:19 +02:00
Marcus Holl
dea2dbcbaa
neoDeploy: assert deployable exists before starting deployment.
...
Up to now the presence of the deployable (source) was checked late
by the NeoCommandLineHelper. The code doing this is surrounded by
the try/catch which finally also puts the log written by the neo
toolset into the job log in case an exception occured.
The check for the deployable returns with the same type of
exception like a failed neo command. Hence we cannot distiguish (ok,
would be possible to parse the exception message, but that is ugly).
When the exception is triggered by the missing deployable we try to
cat the neo log into the job log. But at this point the neo log has
not been provided - neo has not been called at all in this case.
Hence `cat logs/neo/*` in turn fails.
In order to avoid such a failure we check now for the presence of the
deployable earlier before launching the neo toolset.
Since the deployable is used in any deploy mode case no further check
for the deploy mode is required prior to the check for the deployable.
2019-04-02 13:53:31 +02:00
Oliver Nocon
24563db155
update stashing behavior ( #628 )
...
* update stashing behavior
close #619
* add test
2019-04-02 13:13:25 +02:00
Alejandra Ferreiro Vidal
4f93f1f07a
healthExecuteCheck: generate docu
2019-04-01 11:14:38 +02:00
Marcus Holl
2b1b743082
provide the log in case of a failure always, not only in docker context
...
from property dockerImage we cannot conclude that we are in fact running inside a docker environment.
Step dockerExecute has some checks if we are in a docker context. If not there is a fallback to the
local environment.
The docker image property is provided from resources/default_pipeline_environment (value: 's4sdk/docker-neo-cli').
Hence a value will be present all the time (exception: someone configured null/ empty string explicitly). So we
will enter the corresponding code block anyway.
It is IMO also desirable to have the neo log in the job log when running inside a non-docker setup since this
simplifies troubleshooting anyway.
2019-03-29 16:31:09 +01:00
Sven Merk
aaf969e0cf
Merge branch 'master' into whitesource-step
2019-03-29 11:01:15 +01:00
Alejandra Ferreiro Vidal
6b98d642da
removes toolValidate
2019-03-29 08:44:36 +01:00
Sven Merk
4ed0f8df36
Trigger build
2019-03-27 23:46:43 +01:00
Sven Merk
b9596aa84f
Add deletion of downloaded JVM archive
2019-03-27 14:11:54 +01:00
Sven Merk
6b1caf5a3c
Add deletion of downloaded JVM archive
2019-03-27 14:10:29 +01:00
Sven Merk
ea211f5987
Add archiving of debug output to new step
2019-03-27 14:03:11 +01:00
Sven Merk
ae083f5aa7
Merge branch 'master' into whitesource-step
2019-03-27 09:32:05 +01:00
Sven Merk
e5420b1e8a
Add parameter
2019-03-26 17:07:15 +01:00
weloli
519a5d6384
web analytics: add reporting for dockerExecute and dockerExecuteOnKubernetes ( #516 )
...
web analytics: add reporting for dockerExecute and dockerExecuteOnKubernetes
2019-03-26 17:06:34 +01:00
Sven Merk
8725f28ed6
Switch image, dep on the fly
2019-03-26 17:00:13 +01:00
Oliver Nocon
27c4db47e4
Merge branch 'master' into whitesource-step
2019-03-26 16:46:45 +01:00
Sven Merk
a5138ed341
Extended documentation
2019-03-26 14:22:02 +01:00
Alejandra Ferreiro Vidal
e282c07dd4
remove config.properties file
2019-03-26 14:13:03 +01:00
Christopher Fenner
0e7ef41fab
newmanExecute: generate documentation ( #591 )
...
* generate docs for newmanExecute step
* fix typo
2019-03-26 13:26:21 +01:00
Christopher Fenner
f8c8e81958
generate docs for slackSendNotification step ( #592 )
2019-03-26 12:14:29 +01:00
Christopher Fenner
f138ae1499
mailSendNotification: generate documentation ( #584 )
2019-03-25 14:34:48 +01:00
Sven Merk
82d70677fb
Refactor to dep as dependency manager
2019-03-25 14:32:36 +01:00
Sven Merk
7de9718e13
Fix interpretation of descriptor
2019-03-25 12:50:00 +01:00
Sven Merk
f928878c5e
Fix path handling
2019-03-25 10:38:00 +01:00
Sven Merk
c71f420995
Fix version handling
2019-03-25 09:42:25 +01:00
Sven Merk
db8c86e9de
Fix project name determination
2019-03-25 08:51:23 +01:00
Sven Merk
50cc1cb32d
Fix version determination 2
2019-03-25 08:41:30 +01:00
Sven Merk
c269746ed3
Fix version determination
2019-03-22 15:04:19 +01:00
Sven Merk
9322769d47
Improve reported version
2019-03-22 14:53:33 +01:00
Sven Merk
10c7485808
Fix project name determination for Go
2019-03-22 13:08:48 +01:00
Sven Merk
a7f257dfe3
Fix missing reference
2019-03-22 12:11:20 +01:00
Sven Merk
991dd5ec51
Merge branch 'master' into whitesource-step
2019-03-22 11:58:01 +01:00
Sven Merk
8da169d2a8
Enable golang
2019-03-22 11:55:50 +01:00
Christopher Fenner
208e1a4241
influx: report build link to measurements 'step_data' and 'pipeline_data' ( #585 )
2019-03-21 20:23:23 +01:00
Sven Merk
1870c6ab9c
Modify defaults
2019-03-21 14:06:23 +01:00
Sven Merk
be814c62aa
Included comments refactored docu generation
2019-03-21 13:25:22 +01:00
Irina Kirilova
020a5aaadd
Merge branch 'master' into master
2019-03-21 12:54:15 +01:00
Marcus Holl
3f8498e4dd
Merge remote-tracking branch 'github/master' into HEAD
2019-03-21 10:43:27 +01:00
Irina Kirilova
3923d0b2e4
enhance prepare stage with cleanup and checkout
2019-03-21 10:37:02 +01:00
Marcus Holl
1a36a775f4
Fix sanity checks for warPropertiesFile deploy mode. ( #574 )
...
* Fix sanity checks for warPropertiesFile deploy mode.
* improve tests for the sanity checks
The sanity checks are performed per deploy mode.
All parameters are checked at once.
* Explict check for host, account not found by sanity checks for deploy mode war properties
2019-03-20 12:14:57 +01:00
Christopher Fenner
80d288ae57
handlePipelineStepError: use ConfigurationHelper ( #556 )
...
* use ConfigurationHelper in handlePipelineStepError
* externalise help url
2019-03-20 11:21:06 +01:00
Holger Partsch
94957e2b54
Make K8S integration more configurable ( #552 )
...
* Define pod using k8s yaml manifest
The Kubernetes plugin allows to define pods directly via the Kubernetes
API specification:
https://github.com/jenkinsci/kubernetes-plugin#using-yaml-to-define-pod-templates
This has the advantage of unlocking Kubernetes features which are not
exposed via the Kubernetes plugin, including all Kubernetes security
featues.
Using the Kubernetes API directly is also better from development
point of view because it is stable and better desgined then the API the
plugin offers.
* Make the Kubernetes ns configurable
If one Jenkins Master is used by multiple Teams, it is desirable to
schedule K8S workloads in seperatae workspaces.
* Add securityContext to define uid and fsGroup
In the context of the Jenkins k8s plugin it is uids and fsGroups play an
important role, because the containers share a common file system.
Therefore it is benefical to configure this data centraly.
* fix indention
* Undo format changes
* Extend and fix unit tests
* Fix port mapping
* Don't set uid globally
This does not work with jaas due to permissions problems.
* Fix sidecar test
* Make security context configurable at stage level
* Extract json serialization
* Cleanup unit tests
2019-03-20 10:07:37 +01:00
Marcus Holl
ad41c27458
Merge remote-tracking branch 'github/master' into HEAD
2019-03-19 16:05:58 +01:00
Christopher Fenner
7177954e80
seleniumExecuteTests & uiVeri5ExecuteTests: improve documentation ( #568 )
...
* generate docs for seleniumExecuteTests
* inherit docs for uiVeri5ExecuteTests
* add description for failOnError
2019-03-19 15:38:52 +01:00
Christopher Fenner
60cbd2cd57
seleniumExecuteTests: fix type ( #569 )
2019-03-19 12:07:05 +01:00
Marcus Holl
728464ae54
checkChangeInDevelopment with docker
2019-03-19 10:07:18 +01:00
Marcus Holl
bdc0e487d6
release transport request for cts
2019-03-19 10:07:18 +01:00
Marcus Holl
3e8d4fc576
Release transport SOLMAN with docker
2019-03-19 10:07:18 +01:00
Marcus Holl
71fdcc3e53
docker for upload file SOLMAN
2019-03-19 10:07:18 +01:00
Marcus Holl
24cd9400d7
create transport request SOLMAN with docker
2019-03-19 10:07:18 +01:00
Marcus Holl
620e0c7d4a
docker for transportRequestCreate CTS
2019-03-19 10:07:18 +01:00
Marcus Holl
94315bf006
use docker image for cts upload file
2019-03-19 10:07:18 +01:00
Marcus Holl
0fb68187af
[fix] wrong default type for docker config
2019-03-19 10:07:18 +01:00
Marcus Holl
4d4b9de660
Merge remote-tracking branch 'github/master' into HEAD
2019-03-19 09:06:15 +01:00
Daniel Kurzynski
af740e1092
Make source for neo deployments configurable in the config file ( #564 )
2019-03-18 14:55:51 +01:00
Daniel Kurzynski
9f4a597778
Wait for sidecar container to be ready ( #567 )
2019-03-18 14:05:42 +01:00
Christopher Fenner
7069f29ec5
snykExecute: add missing documentation ( #570 )
...
* add docs for snykExecute
* add link to new docs page
2019-03-18 11:08:41 +01:00
Sven Merk
43cb2c68cf
Merge branch 'whitesource-step' of https://github.com/SAP/jenkins-library into whitesource-step
2019-03-15 13:22:05 +01:00
Sven Merk
1a04394a00
Ensure report severity limit is based on configuration
2019-03-15 13:21:56 +01:00
Sven Merk
bb31060dad
Merge branch 'master' into whitesource-step
2019-03-15 13:16:29 +01:00
Sven Merk
e37b714c99
Improve coverage
2019-03-15 13:11:34 +01:00
Sven Merk
c96f73866a
Refactored to generally migrate config to deep structure
2019-03-14 15:18:01 +01:00
Marcus Holl
2b36909f38
Merge remote-tracking branch 'github/master' into HEAD
2019-03-14 13:53:18 +01:00
Christopher Fenner
851e98aef8
handlePipelineStepErrors: add error data to influx measurement ( #563 )
2019-03-14 13:51:00 +01:00
Daniel Kurzynski
9055dd1ea0
Merge branch 'master' into pr/neoDeployParamChecksEarly
2019-03-14 12:52:55 +01:00
Christopher Fenner
4953a894c5
uiVeri5ExecuteTests: add testServerUrl ( #543 )
2019-03-13 17:45:41 +01:00
Marcus Holl
adafab91e2
Perform parameter validation early, do not truncate parameters
...
In case of a mis-configuration we get a hint like "host is missing".
Actually it should be "neo/host is missing" since the parameter "host" is nested inside "neo".
Having simply "host" confuses the person troubleshooting this issue.
With this change the input validation is performed right at the beginning of the step.
The NeoCommandLine helper does not check a second time now.
2019-03-13 15:44:57 +01:00
Marcus Holl
201b075cb5
Merge remote-tracking branch 'github/master' into HEAD
2019-03-13 14:36:34 +01:00
Alejandra Ferreiro Vidal
cf44e18c69
Remove outdated log message ( #550 )
2019-03-13 12:38:04 +01:00
Sven Merk
f2c7265986
Merge branch 'master' into whitesource-step
2019-03-13 12:13:16 +01:00
Sven Merk
06189d9ae0
Cleanup
2019-03-13 12:10:23 +01:00
Christopher Fenner
6d7205377c
generate karma docs ( #555 )
2019-03-13 12:01:05 +01:00
Sven Merk
6764e75551
Merge branch 'master' into whitesource-step
2019-03-13 10:43:23 +01:00
Sven Merk
63861b0dce
Add compatibility support for old values
2019-03-12 22:34:20 +01:00
Marcus Holl
5afaf9cb06
Merge remote-tracking branch 'github/master' into HEAD
2019-03-12 16:08:15 +01:00
Sven Merk
46ddaaf137
Add compatibility support for old values
2019-03-12 12:29:30 +01:00
Sven Merk
c6909fa783
Improve info message
2019-03-12 12:24:25 +01:00
Marcus Holl
a11a9e5fc2
Merge remote-tracking branch 'github/master' into HEAD
2019-03-12 09:52:36 +01:00
Sven Merk
28418eae7c
Move creation of project before scan
2019-03-11 15:27:06 +01:00
Sven Merk
5555858aca
Fix logic
2019-03-11 13:14:48 +01:00
Sven Merk
362bcb787f
Cleanup
2019-03-11 11:44:39 +01:00
Sven Merk
61d6280c3a
Moved admin auth handling into script
2019-03-11 10:46:22 +01:00
Sven Merk
4ae6675824
Revise docs
2019-03-08 13:56:07 +01:00
Sven Merk
6b61bc1b98
Updated documentation
2019-03-08 12:33:31 +01:00
Sven Merk
78b41ce7d8
Fix documentation link
2019-03-07 13:16:03 +01:00
Daniel Kurzynski
1bd1b01a7a
Merge branch 'master' into remove-compatability
2019-03-07 12:54:04 +01:00
Marcus Holl
a7bc198342
neo toolset not configurable ( #484 )
2019-03-07 12:53:25 +01:00
Sven Merk
3e8df1fb68
Formatting
2019-03-07 12:21:35 +01:00
Sven Merk
1f5f812a1a
Fix compatibility for defaults
2019-03-07 12:14:25 +01:00
Sven Merk
6fd4436494
Fix flattening config compatibility feature
2019-03-07 11:43:08 +01:00
Sven Merk
e6c3d6e4ba
Enhance config compatibility feature
2019-03-07 11:13:24 +01:00
Sven Merk
28b370371f
Fix compatibility
2019-03-06 15:46:04 +01:00
Sven Merk
4344f279fa
Fix compatibility feature
2019-03-06 15:33:19 +01:00
Sven Merk
fa33f1925c
Fix compatibility mapping
2019-03-06 15:12:21 +01:00
Sven Merk
bfbee88620
Added documentation of parameters and step
2019-03-06 15:08:42 +01:00
Sven Merk
cfc3a1528a
Implement comments
2019-03-06 14:03:00 +01:00
Sven Merk
f94e23a392
Merge remote-tracking branch 'origin/whitesource-step' into whitesource-step
2019-03-06 13:12:36 +01:00
Sven Merk
6a907cff23
Add creation capabilities for whitesource products
2019-03-06 13:12:23 +01:00
Christopher Fenner
d000c25add
Update vars/whitesourceExecuteScan.groovy
...
Co-Authored-By: nevskrem <33895725+nevskrem@users.noreply.github.com>
2019-03-06 13:11:05 +01:00
Christopher Fenner
ebbc373d56
Update vars/whitesourceExecuteScan.groovy
...
Co-Authored-By: nevskrem <33895725+nevskrem@users.noreply.github.com>
2019-03-06 13:10:49 +01:00
Christopher Fenner
39ef78c219
Update vars/whitesourceExecuteScan.groovy
...
Co-Authored-By: nevskrem <33895725+nevskrem@users.noreply.github.com>
2019-03-06 13:10:31 +01:00
Christopher Fenner
4a05b317b3
Update vars/whitesourceExecuteScan.groovy
...
Co-Authored-By: nevskrem <33895725+nevskrem@users.noreply.github.com>
2019-03-06 13:07:55 +01:00
Sven Merk
f7f33f38ac
Address comments
2019-03-06 11:04:49 +01:00
Sven Merk
84ae883264
Enforce orgToken, sanitize limit
2019-03-05 14:40:36 +01:00
Sven Merk
a0e241b7e4
Add deletion of agent file downloaded
2019-03-05 14:34:57 +01:00
Sven Merk
53491ce956
Cleanup and alignment with internal step
2019-03-05 13:59:40 +01:00
Marcus Holl
42d57479d9
Verbose flag for transport request release
2019-03-05 12:35:28 +01:00
Marcus Holl
ad3e0f86d1
Verbose flag for transportRequestCreate
2019-03-05 10:29:23 +01:00
Sven Merk
3bf3afd7ac
Added debug output
2019-03-04 23:09:40 +01:00
Sven Merk
32b9c95cdb
Added tests
2019-03-04 22:55:43 +01:00
Sven Merk
3eedbbb17c
Fix serialization
2019-03-04 16:49:54 +01:00
Sven Merk
c0df1077c1
Verbose
2019-03-04 16:23:03 +01:00
Sven Merk
bffb57137a
Adapt test
2019-03-04 15:49:55 +01:00
Sven Merk
6066585072
Improve report pulling method
2019-03-04 15:45:30 +01:00
Sven Merk
03d3e2b241
Fix missing descriptor support
2019-03-04 15:02:01 +01:00