Marcus Holl
3e64f4a130
Fix wrong package declaration
2018-04-20 10:59:32 +02:00
Alejandra Ferreiro Vidal
c04bc79976
add extension to mtaBuild
2018-04-17 17:35:10 +02:00
Alejandra Ferreiro Vidal
64b45a13c4
review
2018-04-12 14:25:28 +02:00
Alejandra Ferreiro Vidal
2eafecf38d
check tool on PATH
2018-04-10 10:26:55 +02:00
Alejandra Ferreiro Vidal
60d1b007a8
add JavaArchiveDescriptor
2018-04-10 10:26:45 +02:00
Alejandra Ferreiro Vidal
f29734c6da
validate JAVA if it is in PATH
2018-04-10 10:20:43 +02:00
Alejandra Ferreiro Vidal
66c60b4f26
validate NEO if it is in the PATH or current dir
2018-04-10 10:20:42 +02:00
Alejandra Ferreiro Vidal
74ee6128b7
validate MTA if it is located in current dir
2018-04-10 10:20:42 +02:00
Alejandra Ferreiro Vidal
6f1e2cd205
add verifyTool to mtaBuild and neoDeploy
2018-04-10 10:20:37 +02:00
Alejandra Ferreiro Vidal
f6834c9a42
change file utils to bash
2018-04-10 10:05:26 +02:00
Alejandra Ferreiro Vidal
a1a6467495
remove outdated code from step toolValidate
2018-04-10 10:05:25 +02:00
Alejandra Ferreiro Vidal
dafd48504e
refactor toolValidate step to tool utils
2018-04-10 10:05:12 +02:00
Daniel Kurzynski
b29de61f3c
Fix referencing script in setVersion ( #128 )
...
In order to use the configuration the script needs to be forwarded to
* Fix reference to script in tests and steps
2018-04-05 11:36:51 +02:00
Christopher Fenner
b08d26f5fd
Merge pull request #4 from SAP/master
...
get changes from master
2018-04-05 09:06:09 +02:00
Daniel Kurzynski
fe4707faeb
Improve Docker options configuration and forward from mavenExecute ( #123 )
2018-03-29 14:13:11 +02:00
Ramachandra Kamath Arbettu
aa681dd166
Fix the syntax error in artifactSetVersion step ( #127 )
...
* Update artifactSetVersion.groovy
* Fix tests for artifactSetVersion
2018-03-28 21:38:30 +02:00
Marcus Holl
c8fdbcf263
Merge pull request #124 from IKirilova/master
...
generate mta.yml from package.json and given applicationName
2018-03-23 10:28:45 +01:00
Irina Kirilova
f70ae7f986
rework after code review
2018-03-21 13:07:26 +01:00
Irina Kirilova
29da70fd72
generate mta from package.json and given applicationName
2018-03-15 14:21:27 +01:00
Christopher Fenner
2bd7ffb529
fix tests
2018-03-14 15:58:16 +01:00
Christopher Fenner
3524f3cade
fix tests
2018-03-14 15:55:56 +01:00
Christopher Fenner
3ca1b6ac12
fix tests
2018-03-14 15:53:22 +01:00
Christopher Fenner
84ee9f2e39
fix test case
2018-03-14 15:45:49 +01:00
Christopher Fenner
cb9b8e6360
add tests
2018-03-14 15:44:04 +01:00
Marcus Holl
9529954acd
Disable tool validation inside neoDeploy and mtaBuild
...
We know about two issues:
1.) groovy based file systems checks seems to be executed on Jenkins
master even if there is a node which is dispatched to a slave.
2.) Environment variable contained in the value of a provided
variable are not expanded. Example: In case we describe neoHome like
"$JENKINS_HOME/tools/neo" we do not expand $JENKINS_HOME. Hence the
file exists check for file '$JENKINS_HOME/tools/neo' fails.
2018-03-08 11:23:56 +01:00
Marcus Holl
840f93208c
Merge tag 'mtaMerge2' into HEAD
2018-03-06 17:24:58 +01:00
Marcus Holl
86ab0e04c3
Merge remote-tracking branch 'mholl/pr/javaHomeValidationInsideNeoDeploy' into HEAD
2018-03-06 17:24:31 +01:00
Marcus Holl
690e59f4d2
erge remote-tracking branch 'mholl/pr/javaHomeValidationInsideMtaBuild' into HEAD
2018-03-06 17:16:21 +01:00
Marcus Holl
3cafd0b6d5
Validating mta jar inside mtaBuild
2018-03-06 16:53:14 +01:00
Marcus Holl
3bc53b906f
Make test more tolerant
2018-03-06 16:50:03 +01:00
Marcus Holl
b8760201c7
Emit log message in case tool validation is skipped.
2018-03-06 16:44:11 +01:00
Marcus Holl
d93b865f8d
java home validation inside mtabuild
2018-03-06 16:44:11 +01:00
Marcus Holl
9c544bb6e0
Make test more tolerant
2018-03-06 16:28:01 +01:00
Marcus Holl
23e6e87b75
Validation of neo toolset inside neoDeploy
2018-03-06 16:12:53 +01:00
Marcus Holl
bc9298738b
Make validation of shell calls more tolerant.
...
Needed in order to deal with new shell calls wrt 'which neo.sh'.
2018-03-06 16:02:49 +01:00
Marcus Holl
1c45b043e5
java home validation inside neoDeploy
2018-03-06 15:37:52 +01:00
Marcus Holl
048e004ca7
Make validation of shell calls more tolerant.
...
Needed in order to deal with new shell calls wrt 'which neo.sh'.
2018-03-06 15:37:52 +01:00
Florian Wilhelm
f6c71a8484
Use executeMaven step for artifact versioning ( #114 )
...
* Execute Maven inside Docker container
* Fix test
2018-03-06 13:28:57 +01:00
Florian Wilhelm
ff46bb0f00
Make commit of new version optional in artifactSetVersion
step ( #112 )
...
* Make commit of new version optional in `artifactSetVersion` step
You might not want to add a new commit for each version, when versions
are automatically created. This commit makes this feature optional, but
enabled by default to maintain API compatibility.
* Set `gitCommitId` if null
* Improve documentation of `commitVersion` parameter
* Allow to operate in a code checkout without `.git` directory
2018-03-05 09:04:53 +01:00
Florian Wilhelm
f18f11fafe
Use UTC time zone for artifact version time stamp ( #111 )
...
By using UTC, we avoid potential issues when development happens in
different time zones. Also, daylight saving time does not exist in UTC.
2018-03-02 16:35:35 +01:00
Christopher Fenner
d10b94a166
Update SetupCommonPipelineEnvironmentTest.groovy
2018-03-02 10:57:50 +01:00
Christopher Fenner
e38eda33a7
Update DockerExecuteTest.groovy
2018-03-02 10:55:27 +01:00
Christopher Fenner
83d75e99b7
Update DockerExecuteTest.groovy
2018-03-02 10:54:50 +01:00
Christopher Fenner
76fd77f907
Update ChecksPublishResultsTest.groovy
2018-03-02 10:53:46 +01:00
Christopher Fenner
3ed2d64195
Update ArtifactSetVersionTest.groovy
2018-03-02 10:53:09 +01:00
Christopher Fenner
a54e1a7611
use new rules
2018-02-28 13:12:03 +01:00
Christopher Fenner
158a60aecc
use new rules
2018-02-28 13:11:09 +01:00
Christopher Fenner
4fcc911e6c
use new rules
2018-02-28 11:55:19 +01:00
Christopher Fenner
0ba1a2c594
add JenkinsEnvironmentRule
2018-02-28 11:54:52 +01:00
Christopher Fenner
be26c8dc1e
add JenkinsStepRule
2018-02-28 11:54:39 +01:00
Marcus Holl
efafd9a44a
[refactoring] resolve data inside merge ( #101 )
2018-02-28 11:42:19 +01:00
Christopher Fenner
9d070767fc
remove duplicate class
2018-02-26 09:03:55 +01:00
Alejandra Ferreiro Vidal
e7bf3b1b0f
mtaJarLocation as step configuration
2018-02-20 12:02:33 +01:00
Alejandra Ferreiro Vidal
5256494ffa
Merge pull request #88 from marcusholl/pr/useSetsInsteadOfLists
...
Replace usage of lists for denoting keys by sets.
2018-02-20 11:54:30 +01:00
Marcus Holl
5fe76eb9dc
Replace usage of lists for denoting keys by sets.
...
The characteristics of a list are
o the order of the entries is significant
o duplicates are allowed
The characteristics of a set are
o the order is not significant
o duplicates are not allowed.
When describing keys for a step the characteristics of a
set applies here, whereas the characteristics of a list does
not apply.
2018-02-19 12:53:08 +01:00
Christopher Fenner
26bbee5fb4
use perfReport step
2018-02-19 10:26:50 +01:00
Alejandra Ferreiro Vidal
c12af7b8d5
add custom configuration test
2018-02-19 09:40:14 +01:00
Alejandra Ferreiro Vidal
ac6cc2aa60
Merge pull request #79 from alejandraferreirovidal/cleanUpNeoDeploymentTest
...
clean up NeoDeploymentTest
2018-02-19 09:34:15 +01:00
Alejandra Ferreiro Vidal
0510e087b8
Merge pull request #82 from alejandraferreirovidal/addTests
...
improve tests coverage
2018-02-16 17:26:55 +01:00
Alejandra Ferreiro Vidal
b243ce4e5c
improve test coverage
2018-02-16 17:15:41 +01:00
Alejandra Ferreiro Vidal
f156509484
Merge pull request #78 from alejandraferreirovidal/mtaBuildTest
...
create test files before class - MTABuildTest
2018-02-16 17:09:27 +01:00
Christopher Fenner
98b5590d53
Merge branch 'master' into publishTestResults
2018-02-16 10:32:24 +01:00
Christopher Fenner
be5b5ec9fa
Merge pull request #58 from CCFenner/publishCheckResults
...
add new step checkResultsPublish
2018-02-16 10:30:59 +01:00
Alejandra Ferreiro Vidal
0703147802
create test files before class
2018-02-14 14:36:50 +01:00
Alejandra Ferreiro Vidal
b813dc4b42
add missing package
2018-02-14 11:32:52 +01:00
Alejandra Ferreiro Vidal
aea1dbfc9f
String as String not GString
2018-02-13 16:38:09 +01:00
Alejandra Ferreiro Vidal
0a8d096a5e
reduce scope of neoHome tests
2018-02-13 15:00:00 +01:00
Alejandra Ferreiro Vidal
2cb22ebf4d
remove duplicate assertion
2018-02-13 14:59:48 +01:00
Alejandra Ferreiro Vidal
691257a458
refactor NEO_HOME
2018-02-13 14:59:19 +01:00
Alejandra Ferreiro Vidal
d36288dabf
refactor host and account configuration
2018-02-13 14:59:08 +01:00
Alejandra Ferreiro Vidal
2e3d1ec488
create test files before class
2018-02-13 14:55:57 +01:00
Alejandra Ferreiro Vidal
a9895bab7d
simplify workspace path
2018-02-13 14:43:07 +01:00
Alejandra Ferreiro Vidal
724cf64832
create test files before class
2018-02-13 14:32:54 +01:00
Alejandra Ferreiro Vidal
874dddfe33
String as String not GString
2018-02-12 16:00:05 +01:00
Alejandra Ferreiro Vidal
72f65a90bc
make script private
2018-02-12 15:59:04 +01:00
Alejandra Ferreiro Vidal
56fe9488ff
create test files before class
2018-02-12 15:56:48 +01:00
Alejandra Ferreiro Vidal
df9a3b3c14
improve log
2018-02-12 10:03:35 +01:00
Alejandra Ferreiro Vidal
39f982c598
refactor home to make it more readable
2018-02-12 10:03:35 +01:00
Alejandra Ferreiro Vidal
3ef6f2de80
remove duplicate code
2018-02-12 10:03:21 +01:00
Christopher Fenner
60691dde5b
Merge branch 'master' into publishCheckResults
2018-02-12 08:37:15 +01:00
Alejandra Ferreiro Vidal
5bfb68d24a
move utils test classes to com.sap.piper folder
...
The folder com.sap.piper was created and the corresponding test classes
were not moved. Furthermore, a new UtilsTest class was created when this
test class did already exist, and the same tests were already
implemented, also this new test class uses the lesfurets testing
framework when it is not needed, so this new test class is removed and
the test class that there was before is kept.
2018-02-09 18:08:11 +01:00
Christopher Fenner
3f5d0c74db
use Integer for step invocation
2018-02-09 12:15:26 +01:00
Christopher Fenner
ddf1e609e4
rename step under test
2018-02-08 23:48:49 +01:00
Christopher Fenner
91e0b3294e
rename test script variable name
2018-02-08 16:38:55 +01:00
Christopher Fenner
b443ac0e41
Merge branch 'master' into publishTestResults5
2018-02-08 14:14:07 +01:00
Alejandra Ferreiro Vidal
9dafdd1cc0
mtaBuild with new config framework
2018-02-08 13:26:48 +01:00
Christopher Fenner
ab80004356
remove unused test file
2018-02-08 10:58:56 +01:00
Christopher Fenner
c6300f4570
correct handling of parameter maps
2018-02-08 10:50:11 +01:00
Christopher Fenner
ebedbb01e0
add test for default thresholds
2018-02-08 10:43:06 +01:00
Christopher Fenner
be41b71b84
Merge branch 'master' into publishCheckResults
2018-02-08 08:53:04 +01:00
Christopher Fenner
157c9cacfe
Merge pull request #66 from CCFenner/deepConfigMerge
...
extend config merger to handle deep config structures
2018-02-08 08:50:20 +01:00
Christopher Fenner
3bf3a2a9f5
Update ConfigurationMergerTest.groovy
2018-02-07 22:53:47 +01:00
Oliver Nocon
fbd03a88da
Step for automatic versioning ( #65 )
...
It contains:
* versioning step artifactSetVersion
* versioning implementation for Maven & Docker
* enhancements to commonPipelineEnvironment
* extended default configuration
* new utils object for git-related tasks
* automated tests incl. new Rules and resources
* incorporated PR feedback
* step documentation
2018-02-07 13:17:33 +01:00
Christopher Fenner
6300008fe2
adopt tests
2018-02-07 12:01:46 +01:00
Alejandra Ferreiro Vidal
42db55d5a5
remove public when not needed
...
See: https://github.com/SAP/jenkins-library/blob/master/CONTRIBUTING.md#do-not-use-a-visibility-modifier-for-public-classes-and-methods
2018-02-06 15:57:26 +01:00
Alejandra Ferreiro Vidal
334251ec82
remove curly braces when not needed
...
See: https://github.com/SAP/jenkins-library/blob/master/CONTRIBUTING.md#do-not-use-curly-braces--for-variables-or-variableproperty
2018-02-06 15:57:26 +01:00
Alejandra Ferreiro Vidal
615f8deb1d
add blanks to keep format
2018-02-06 15:57:26 +01:00
Alejandra Ferreiro Vidal
ae66a5cbca
add new lines to keep format
2018-02-06 15:57:26 +01:00
Alejandra Ferreiro Vidal
4360636609
add sed test
...
Removes straightForwardTest that has not a clear scope since it test all
that it is tested in the other tests.
Adds sed test.
Removes duplicated sed assertions.
2018-02-06 15:57:25 +01:00
Alejandra Ferreiro Vidal
69d0050e0c
remove blanks
2018-02-06 15:57:25 +01:00