diff --git a/ct/jenkins.sh b/ct/jenkins.sh index 0d71d4311..d88a2684b 100644 --- a/ct/jenkins.sh +++ b/ct/jenkins.sh @@ -32,7 +32,7 @@ function update_script() { msg_info "Updating Jenkins" $STD apt update - $STD apt -y upgrade + $STD apt upgrade -y msg_ok "Updated Jenkins" msg_ok "Updated successfully!" exit diff --git a/install/jenkins-install.sh b/install/jenkins-install.sh index b8dcdacde..2ddfa8682 100644 --- a/install/jenkins-install.sh +++ b/install/jenkins-install.sh @@ -13,11 +13,14 @@ network_check update_os JAVA_VERSION="21" setup_java +setup_deb822_repo \ + "jenkins" \ + "https://pkg.jenkins.io/debian/jenkins.io-2026.key" \ + "https://pkg.jenkins.io/debian" \ + "binary/" \ + " " msg_info "Setup Jenkins" -curl -fsSL "https://pkg.jenkins.io/debian/jenkins.io-2023.key" -o "/usr/share/keyrings/jenkins-keyring.asc" -echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]" https://pkg.jenkins.io/debian binary/ >/etc/apt/sources.list.d/jenkins.list -$STD apt update $STD apt install -y jenkins msg_ok "Setup Jenkins"