Luke Wood
aa517f2db1
Persist the permissions of the source file when copying overrides.
...
If, for whatever reason, a file has been created on the Jenkins home
volume with the wrong permissions (eg. ssh config/keys etc) then it is
currently impossible to override those permissions without going into
the volume and manually editing them.
This change updates the `copy_reference_file` function to use `cp -p`,
which preserves mode, ownership and timestamps of the source files
instead of the destination file being overwritten.
2018-01-24 10:44:52 +00:00
Carlos Sanchez
108f1681f8
Merge pull request #591 from carlossg/test-dep
...
Avoid dependency between tests
2017-12-17 11:35:45 +01:00
guessi
d85be653b5
Enhance support for write commnet in plugins.txt
...
- add ability to write comment in plugins.txt
- remove leading spaces/tabs
- remove trailing spaces/tabs
- protect against empty lines
Enhanced #505
Signed-off-by: guessi <guessi@gmail.com>
2017-12-09 17:50:57 +08:00
Carlos Sanchez
b9c66f5477
Merge pull request #560 from krakan/master
...
Issue #559 - Do not reinstall already installed plugins
2017-10-12 17:48:34 +02:00
Jonas Linde
34d433aa41
Clarifying test case for not reinstalling dependencies
2017-10-12 14:02:36 +02:00
Carlos Sanchez
7bea46b74f
Avoid dependency between tests
2017-10-12 12:25:58 +02:00
Jonas Linde
4b4faa8fa3
Simplifies test case for not reinstalling dependencies
2017-10-09 15:52:04 +02:00
Jonas Linde
e98947e4ad
Adds test case for not reinstalling dependencies
2017-10-09 15:41:09 +02:00
Carlos Sanchez
e37fdab85c
Alpine tests are using the debian parent image
...
A fix to run in parallel
2017-09-22 13:10:13 +02:00
Carlos Sanchez
bbf0319643
Do not share work dir across tests
2017-09-21 14:34:36 +02:00
Carlos Sanchez
4a9a8c79ab
Run bats tests in parallel
2017-09-21 14:29:42 +02:00
Carlos Sanchez
aa260f9a34
Run alpine tests too
...
Since the branch was removed the tests were not running
2017-09-21 13:44:31 +02:00
Mark Waite
5eebe678e0
Assert install-plugins.sh installs :latest and :experimental
2017-07-24 08:13:05 -06:00
Oleg Nenashev
f99e4b223c
Issue #538 - Add support of downloading plugins from the Experimental UC ( #539 )
...
* Issue #538 - Add support of downloading plugins from the Experimantal UC
* Issue #538 - Add Test
2017-07-24 09:38:28 +02:00
Carlos Sanchez
15bc30def1
Merge pull request #365 from pathob/install-plugins
...
Add plugins.txt file compability for install-plugins.sh
2017-05-26 10:19:48 +02:00
Patrick Hobusch
ab733ca29c
Add tests for plugin installation with a plugins file
2017-03-14 12:58:55 +01:00
Carlos Sanchez
6c3d40436b
Fix tests in build agents without unzip installed ( #409 )
2016-12-26 12:37:37 +01:00
Carlos Sanchez
59d9ef6e97
Allow running the tests with specific versions of Jenkins
2016-11-09 13:08:41 +01:00
Carlos Sanchez
21b0f37a8b
Increase default curl timeout to 20 as tests are failing
2016-10-06 13:34:25 -07:00
Carlos Sanchez
3e58be9165
Make Jenkinsfile work in https://ci.jenkins.io/job/Packaging/job/docker
2016-09-17 10:11:37 -07:00
Carlos Sanchez
f7c0eab957
Split tests in two files
2016-08-14 11:21:34 +02:00
Carlos Sanchez
0e026d2cd9
Run versionLT tests in the image we are building
...
OS X sort doesn't have -V
Ensure the sort in the image, not the one in the build machine, works
2016-08-08 09:57:58 +02:00
Carlos Sanchez
3a83b9d680
Install plugins even when they already exist in a different version ( #323 )
2016-08-08 09:36:28 +02:00
Carlos Sanchez
1bcbb380eb
Fix #319 Ignore plugins bundled under detached-plugins
...
Fix plugins.sh test
2016-08-05 11:38:53 +02:00
Carlos Sanchez
0ab4070108
Fix #319 Ignore plugins bundled under detached-plugins
...
They are not loaded by Jenkins in new installations
2016-08-05 10:44:58 +02:00
Carlos Sanchez
04473ffd86
Test that optional dependencies are not bundled
2016-07-19 13:19:51 +02:00
Carlos Sanchez
9bd5ef3949
Merge pull request #309 from carlossg/install-plugins
...
install-plugins is not resolving transitive dependencies
2016-07-19 13:15:43 +02:00
Vincent Latombe
c14af958f1
Make versionsLT support versions with qualifier ( #307 )
...
Extracted functions to jenkins-support; included in both jenkins.sh and
install-plugin.sh.
Added a separate test file to test versionLT function
2016-07-18 10:20:12 +02:00
Carlos Sanchez
82272776de
install-plugins is not resolving transitive dependencies
2016-07-18 10:02:11 +02:00
Vincent Latombe
bb8f8c9ad0
Upgrade plugins if needed ( #306 )
...
Each plugin installed through the docker image is now tracked using a
marker file containing the version that was installed through the image.
If later, the container is started from a docker image containing newer
plugins, existing plugins will be upgraded if they haven't been upgraded
in the mean time and if the new docker image provides a new version of
them.
Add tests to check that plugins are upgrade properly
2016-07-13 18:18:14 +02:00
Carlos Sanchez
d01bd5116d
Test ouput without color in alpine
2016-07-11 15:42:33 +02:00
Carlos Sanchez
114dc70e9c
#207 , #219 Filter out plugins already installed, update tests
2016-06-28 18:51:08 +02:00
Carlos Sanchez
45a628577e
Add more tests for plugin installation
2016-06-27 23:28:48 +02:00
Carlos Sanchez
95241d1442
Skip tests committed by mistake
2016-06-27 17:22:43 +02:00
Carlos Sanchez
15328f6880
Use the correct image in test
2016-06-27 17:22:04 +02:00
Carlos Sanchez
67055a24bd
Add tests for install-plugins.sh
...
Use bats-assert and bats-support for testing
2016-06-27 17:08:54 +02:00
Carlos Sanchez
730a905fd7
Add test for install-plugins
2016-06-22 12:52:44 +02:00
Carlos Sanchez
758cd6087f
Latest Docker for mac uses localhost
2016-05-02 11:57:04 -07:00
Carlos Sanchez
5a51d0a519
Make tests work in 2.0
2016-04-21 13:50:25 +02:00
Carlos Sanchez
c3e7a0c2bf
Make tests work on Docker for Mac
2016-04-20 16:39:04 +02:00
Carlos Sanchez
8cb67a071a
Some bash improvements
2016-04-20 13:49:12 +02:00
Carlos Sanchez
2d72a186ba
Test that plugins are actually installed
2016-04-20 13:49:12 +02:00
Carlos Sanchez
2d68b194e7
Remove newlines in test output
2016-04-20 13:26:59 +02:00
Carlos Sanchez
3e8e948432
Add test for plugins.sh execution
2016-04-20 13:04:48 +02:00
Carlos Sanchez
0c98782695
Issue #226 Fix tests
2016-03-16 08:42:03 +01:00
Carlos Sanchez
177b25fa5d
Re-add cleanup at the end of tests
2016-02-29 13:53:22 +01:00
Carlos Sanchez
c24ef82a13
Issue #213 Add test for JAVA_OPTS
2016-02-29 13:47:31 +01:00
Carlos Sanchez
5fc9cd06a5
Use exec instead of bash to start java
...
Fix passing multiple arguments
Add test for jenkins arguments and JENKINS_OPTS
2016-02-28 15:31:38 +01:00
Carlos Sanchez
d1f266538b
Make tests run with remote docker hosts
2015-09-11 18:54:47 +02:00
Thomas LEVEIL
58695bbaa5
[tests] Add test suite
2015-09-10 22:54:28 +00:00