diff --git a/README.md b/README.md index 71aa811..b532f49 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to ## Overview The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project. -**Shipped version:** 2.121.1 +**Shipped version:** 2.150.2 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 9394c15..6e56a0c 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, merci de regarder [ici](https://yunohost.org/#/inst ## Résumé Premier serveur d'automatisation open source, Jenkins fournit des centaines de plugins pour supporter la construction, le déploiement et l'automatisation de n'importe quel projet. -**Version embarquée:** 2.121.1 +**Version embarquée:** 2.150.2 ## Captures d'écran diff --git a/conf/app.src_file b/conf/app.src_file index 6749536..f5fe239 100644 --- a/conf/app.src_file +++ b/conf/app.src_file @@ -1,4 +1,4 @@ -FILE_URL=https://pkg.jenkins.io/debian-stable/binary/jenkins_2.121.1_all.deb -FILE_SUM=4660f72dcc4ad697632c53c4d8985d6d +FILE_URL=https://pkg.jenkins.io/debian-stable/binary/jenkins_2.150.2_all.deb +FILE_SUM=d00ff7066d51895bbd17d1b3a2efbf00 FILE_SUM_PRG=md5sum FILENAME=jenkins.deb diff --git a/manifest.json b/manifest.json index 579b44d..6e87fe2 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Extendable continuous integration server", "fr": "Serveur d'intégration continue extensible" }, - "version": "2.121.1~ynh3", + "version": "2.150.2~ynh1", "url": "https://jenkins.io/index.html", "license": "MIT", "maintainer": { diff --git a/scripts/install b/scripts/install index e97c766..5e823d1 100644 --- a/scripts/install +++ b/scripts/install @@ -153,7 +153,12 @@ timeout=3600 # Add the domain to /etc/hosts, to prevent any dns delay echo "127.0.0.1 $domain #jenkins" | tee -a /etc/hosts -jenkins_cli="ynh_exec_warn_less java -jar /var/lib/jenkins/jenkins-cli.jar -remoting -s http://$domain$path_url" +# Wait for Jenkins to be fully started +ynh_systemd_action --action=restart --line_match="Jenkins is fully up and running" --log_path="/var/log/$app/$app.log" --timeout="$timeout" + +# Enable Jenkins CLI Protocol/2 for jenkins-cli +# That the only protocol that allow connection without an authenticated user... +ynh_replace_string "0" "&\nCLI2-connect" /var/lib/jenkins/config.xml # Wait for Jenkins to be fully started ynh_systemd_action --action=restart --line_match="Jenkins is fully up and running" --log_path="/var/log/$app/$app.log" --timeout="$timeout" @@ -171,6 +176,8 @@ do fi done +jenkins_cli="ynh_exec_warn_less java -jar /var/lib/jenkins/jenkins-cli.jar -remoting -s http://$domain$path_url" + # Install plugins for http authentication and ldap. $jenkins_cli install-plugin reverse-proxy-auth-plugin