#!/bin/bash sudo apt-get update sudo apt-get --only-upgrade install jenkins sudo systemctl restart jenkins