Commit Graph

44 Commits

Author SHA1 Message Date
Matteo Turra f315835e24 issue #516
fix install-plugins using a plugin list with windows line endings
2018-01-09 16:41:41 +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 24a2170d01 Merge pull request #588 from clokanku/patch-1
Consider non empty last line of plugins.txt
2017-10-12 17:51:37 +02:00
Clo 542fcdc558 Consider non empty last line of plugins.txt 2017-10-09 13:38:31 +02:00
Jonas Linde 8b5649110c Issue #559 - Do not reinstall already installed plugins 2017-08-23 17:06:01 +02: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
Reinhard Nägele 2898b724af Resolve plugins from version-specific update center (#495)
Reads Jenkins version from the  manifest and checks if an update center
for this version is available. If this is the case, latest plugin
versions are resolved from this update center. This ensures that
latest plugin versions are always compatible to the LTS version if
an LTS version is used.

Fixes #494
2017-06-01 16:08:37 +02:00
Carlos Sanchez ed1a330c47 Run shellcheck on build (#499)
And fix all the errors and warnings reported
2017-05-27 18:22:27 +02:00
Patrick Hobusch e23d8ec659 Add plugins.txt file compability for install-plugins.sh
The new install-plugins.sh script removed the possibility to pass a file
containing a list of plugins that was given with the 'old' plugins.sh
script, although this functionality can be provided with only a few
lines more.

Now, when the install-plugins.sh script is called with only a single
argument that matches an existing file on the file system, it is assumed
that this file contains the list of plugins that should be installed,
newlines are replaced by spaces and this manipulated content is used as
the plugins list for further processing.
2016-10-17 13:17:51 +02:00
Carlos Sanchez 2fb0684fe6 Fix race condition in tests, print with newline at end 2016-10-06 14:16:20 -07:00
Carlos Sanchez 21b0f37a8b Increase default curl timeout to 20 as tests are failing 2016-10-06 13:34:25 -07:00
Raymond Barbiero 6233a4d231 make curl settings configurable 2016-10-04 18:04:09 -04:00
Charles Duffy 3eec42cbad Full best-practices / shellcheck-compliance pass
- Use modern `$()` syntax vs backticks [see [SC2006](https://github.com/koalaman/shellcheck/wiki/SC2006)]
- Always check for, and bail on, failures of `cd`. [see [SC2164](https://github.com/koalaman/shellcheck/wiki/SC2164)]
- Avoid `for foo in $(...)`, per [DontReadLinesWithFor](http://mywiki.wooledge.org/DontReadLinesWithFor)
- Avoid parsing `ls` to find subdirectories when `for d in "$dir"/*/` does the job; see also [ParsingLs](http://mywiki.wooledge.org/ParsingLs)
- `\s` is not specified in POSIX ERE (thus, not guaranteed to be available in bash-native regexes unless local platform's C library's regex implementation extends standard); use `[[:space:]]` instead.
- Avoid unnecessary deviations from POSIX sh specification:
   - `echo -e` violates (not just extends) POSIX, doesn't work as expected in bash compiled with `--enable-xpg-echo-default`; [POSIX specification](http://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html) suggests `printf` as replacement (see APPLICATION USAGE section).
   - `function` keyword not specified in POSIX, provides no benefit over standard-compliant syntax
2016-09-26 17:03:10 +02:00
Gareth Harcombe-Minson d6a7512eec Remove zip dependency and replace with unzip equivalent (#354) 2016-09-26 16:59:36 +02:00
Carlos Sanchez 0d167af18b Fix #337 Use the correct bash expansion in install-plugins 2016-08-29 11:03:03 +02:00
Jean-Louis Boudart fbb05c3696 Fix default value handling (-u option is set making -z fail) 2016-08-28 11:54:08 +02:00
Jean-Louis Boudart ad0ff9c324 Fix #331 backport JENKINS_UC_DOWNLOAD feature in install-plugins.sh 2016-08-22 09:00:30 +02:00
Carlos Sanchez b5ae0c5ed7 Print plugins bundled and installed 2016-08-15 11:38:24 +02:00
Carlos Sanchez 119703c55b Always install latest version of dependencies, not minimum
To match Plugin Management Behavior
Fixes #327, fixes #328
2016-08-15 11:00:04 +02:00
Carlos Sanchez c0f63797fa Tabs to spaces 2016-08-15 10:30:16 +02:00
Carlos Sanchez 7a549894d0 Fix shellcheck warnings 2016-08-15 10:25:03 +02:00
Carlos Sanchez 7d165ac0ca Fail fast in install-plugins script 2016-08-14 12:18:30 +02:00
Fredrik Kers 96ceb54b1e Don't use a carriage return character in the script 2016-08-13 00:02:02 +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 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 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
Carlos Sanchez e1b99f4b24 Do not bundle transitive dependencies already included in the war
Unless they are newer
2016-07-11 10:24:03 +02:00
Carlos Sanchez d76ab2e9a8 Silent plugin download 2016-06-27 23:40:22 +02:00
Carlos Sanchez 050b643bd3 10 seconds is too little to download plugins 2016-06-27 17:08:54 +02:00
Carlos Sanchez 16ae24e570 Download as jpi instead of hpi 2016-06-27 13:47:09 +02:00
Brian Antonelli 6706b26a9e Install plugins timeout fix (#296)
* Adds retry and timeout to curl call

* Fixed spaces/tab issue
2016-06-24 12:31:54 +02:00
apottere bbd13d0547 Update download script to add parallelism, correct locking, and specific version support. (#291)
Update download script to add parallelism, correct locking, and specific version support.

Add support for provided plugins.
2016-06-23 18:24:15 +02:00
jgmchan e550fba0fd Do not error if there are no 'resolved' flag files
Plugins with no dependencies (like the `ansicolor` plugin) will not have created a `resolved` flag. 

`rm` will throw an error if the file does not exist. Set a `-f` flag to stop this.
2016-06-11 18:58:42 +10:00
Nicolas De Loof cf78b915ed run script wit `-e` 2016-06-02 09:12:54 +02:00
Nicolas De Loof a9d458b634 fix download failure detection
and fallback to `-plugin` for unconventional plugins
2016-06-02 08:55:15 +02:00
Sýlvan Heuser 62421ca62d Quote variables 2016-06-01 15:52:33 +02:00
Sýlvan Heuser b20f388724 Fix script not necessarily working in the correct directory 2016-06-01 15:47:38 +02:00
Sýlvan Heuser 2f2bdc946f Fix dependency resolving 2016-06-01 15:46:16 +02:00
Nicolas De Loof 4675f04169 use local variables within functions
rely on JENKINS_UC set by Dockerfile
try to resolve artifact with `-plugin`
2016-06-01 14:07:33 +02:00
Nicolas De Loof a7a34c3e7d avoid resolving dependencies twice for the same plugin
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2016-05-30 09:54:50 +02:00
Baptiste Mathus 0e7eac3054 typo: allready -> already (#278) 2016-05-29 17:14:40 +03:00
Nicolas De Loof dfe81a3990 handle >1 plugins to be installed with dependencies
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2016-05-28 17:26:30 +02:00