mirror of
https://github.com/YunoHost-Apps/jenkins_ynh.git
synced 2024-09-03 19:26:18 +02:00
commit
f0cf134e18
4 changed files with 14 additions and 5 deletions
|
@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Extendable continuous integration server
|
Extendable continuous integration server
|
||||||
|
|
||||||
**Shipped version:** 2.401.2~ynh1
|
**Shipped version:** 2.401.2~ynh2
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
|
|
||||||
Serveur d'intégration continue extensible
|
Serveur d'intégration continue extensible
|
||||||
|
|
||||||
**Version incluse :** 2.401.2~ynh1
|
**Version incluse :** 2.401.2~ynh2
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Extendable continuous integration server",
|
"en": "Extendable continuous integration server",
|
||||||
"fr": "Serveur d'intégration continue extensible"
|
"fr": "Serveur d'intégration continue extensible"
|
||||||
},
|
},
|
||||||
"version": "2.401.2~ynh1",
|
"version": "2.401.2~ynh2",
|
||||||
"url": "https://jenkins.io/index.html",
|
"url": "https://jenkins.io/index.html",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -115,12 +115,17 @@ ynh_add_nginx_config
|
||||||
ynh_script_progression --message="Installing Jenkins..."
|
ynh_script_progression --message="Installing Jenkins..."
|
||||||
|
|
||||||
# Download jenkins deb file and install it.
|
# Download jenkins deb file and install it.
|
||||||
dpkg --install --force-confnew ../conf/jenkins.deb
|
dpkg --install --force-confnew ../conf/jenkins.deb || true
|
||||||
|
dpkg_install_failed=$(dpkg-query -f '${status} ${package}\n' -W | awk '$4 ~ /^jenkins.*/ && $3 != "installed" {print $4}' | wc -l)
|
||||||
|
|
||||||
|
if [[ $dpkg_install_failed -ge 1 ]]; then
|
||||||
|
ynh_print_warn --message="The service jenkins cannot be started for now."
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP APPLICATION
|
# SETUP APPLICATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setuping application..."
|
ynh_script_progression --message="Setuping application on port $port..."
|
||||||
|
|
||||||
cat >> "$final_path/jenkins.install.InstallUtil.lastExecVersion" <<EOF
|
cat >> "$final_path/jenkins.install.InstallUtil.lastExecVersion" <<EOF
|
||||||
$jenkins_version
|
$jenkins_version
|
||||||
|
@ -138,6 +143,10 @@ systemctl daemon-reload --quiet
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="restart" --line_match="Started Jenkins Continuous Integration Server" --log_path="systemd"
|
ynh_systemd_action --service_name=$app --action="restart" --line_match="Started Jenkins Continuous Integration Server" --log_path="systemd"
|
||||||
|
|
||||||
|
if [[ $dpkg_install_failed -ge 1 ]]; then
|
||||||
|
dpkg --configure -a
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL PLUGINS
|
# INSTALL PLUGINS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue