This commit is contained in:
Slaviša Arežina
2026-01-09 20:31:30 +01:00
committed by GitHub
parent 5b5bc11f1e
commit 2c1472bb58
2 changed files with 7 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ function update_script() {
msg_info "Updating Jenkins" msg_info "Updating Jenkins"
$STD apt update $STD apt update
$STD apt -y upgrade $STD apt upgrade -y
msg_ok "Updated Jenkins" msg_ok "Updated Jenkins"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
exit exit

View File

@@ -13,11 +13,14 @@ network_check
update_os update_os
JAVA_VERSION="21" setup_java 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" 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 $STD apt install -y jenkins
msg_ok "Setup Jenkins" msg_ok "Setup Jenkins"