ProxmoxVE/install/jenkins-install.sh

37 lines
888 B
Bash
Raw Normal View History

2024-11-30 02:29:08 +00:00
#!/usr/bin/env bash
# Copyright (c) 2021-2024 community-scripts ORG
# Author: kristocopani
# License: MIT
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
2024-12-26 11:16:06 +00:00
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
2024-11-30 02:29:08 +00:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y \
curl \
mc \
2024-11-30 02:52:12 +00:00
sudo \
openjdk-17-jre
2024-11-30 02:29:08 +00:00
msg_ok "Installed Dependencies"
2024-12-26 11:16:06 +00:00
msg_info "Setup Jenkins"
2024-11-30 03:06:30 +00:00
wget -qO /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian/jenkins.io-2023.key
2024-11-30 02:52:12 +00:00
echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]" https://pkg.jenkins.io/debian binary/ >/etc/apt/sources.list.d/jenkins.list
2024-11-30 03:06:30 +00:00
$STD apt-get update
2024-12-26 11:16:06 +00:00
$STD apt-get install -y jenkins
msg_ok "Setup Jenkins"
2024-11-30 02:29:08 +00:00
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
2024-11-30 02:52:12 +00:00
msg_ok "Cleaned"