Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/ocf_jenkins/files/update-plugins
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ssh_cmd="ssh -p 2222 -o StrictHostKeyChecking=no -i /opt/jenkins/deploy/ssh_cli
# Taken from https://stackoverflow.com/a/25647793 and modified to use SSH
# instead of the jenkins-cli jar
updates=$($ssh_cmd list-plugins | grep -e ')$' | awk '{ print $1 }');
if [ ! -z "$updates" ]; then
if [ -n "$updates" ]; then
echo "Updating Jenkins Plugins: $updates"
$ssh_cmd install-plugin "$updates"
echo "Restarting Jenkins..."
Expand Down