2024-12-26 18:00:20 +00:00
|
|
|
#!/usr/bin/env bash
|
2025-01-01 12:37:29 +00:00
|
|
|
# Copyright (c) 2021-2025 community-scripts ORG
|
2024-12-26 18:00:20 +00:00
|
|
|
# Author: kristocopani
|
|
|
|
# License: MIT
|
|
|
|
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
|
|
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
|
|
color
|
|
|
|
verb_ip6
|
|
|
|
catch_errors
|
|
|
|
setting_up_container
|
|
|
|
network_check
|
|
|
|
update_os
|
|
|
|
|
|
|
|
msg_info "Installing Dependencies"
|
|
|
|
$STD apt-get install -y \
|
|
|
|
curl \
|
|
|
|
mc \
|
|
|
|
sudo \
|
|
|
|
openjdk-17-jre
|
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
|
|
|
|
msg_info "Setup Jenkins"
|
|
|
|
wget -qO /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian/jenkins.io-2023.key
|
|
|
|
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-get update
|
|
|
|
$STD apt-get install -y jenkins
|
|
|
|
msg_ok "Setup Jenkins"
|
|
|
|
|
|
|
|
motd_ssh
|
|
|
|
customize
|
|
|
|
|
|
|
|
msg_info "Cleaning up"
|
|
|
|
$STD apt-get -y autoremove
|
|
|
|
$STD apt-get -y autoclean
|
|
|
|
msg_ok "Cleaned"
|