]> git.pld-linux.org Git - packages/jenkins.git/commitdiff
build LTS 1.509.2
authorElan Ruusamäe <glen@delfi.ee>
Tue, 20 Aug 2013 19:08:59 +0000 (22:08 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 13 Sep 2013 19:19:17 +0000 (22:19 +0300)
jenkins.spec

index 5aa17beb38f9ee938817b6634d61b8eb8e954268..a3ad2d9b26d405ff19d6f84805c277325121e229 100644 (file)
@@ -3,18 +3,16 @@
 #   https://hudson.dev.java.net/files/documents/2402/125619/hudson-1.280-src.zip
 # - use system jars
 # - subpackages (see ubuntu packages for splitting contents)
-# - switch to LTS when next one (bigger version than current) comes out
-#   https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line
 %include       /usr/lib/rpm/macros.java
 Summary:       Jenkins Continuous Build Server
 Name:          jenkins
-Version:       1.520
+Version:       1.509.2
 Release:       1
 License:       MIT License
 Group:         Networking/Daemons/Java/Servlets
-# Check for new releases and URLs here: http://mirrors.jenkins-ci.org/war/?C=N;O=D
-Source0:       http://mirrors.jenkins-ci.org/war/%{version}/%{name}.war?/%{name}-%{version}.war
-# Source0-md5: c7edb8c15074e1278937fe44f2ea705b
+# Check for new releases and URLs here: http://mirrors.jenkins-ci.org/war-stable/?C=N;O=D
+Source0:       http://mirrors.jenkins-ci.org/war-stable/%{version}/%{name}.war?/%{name}-%{version}.war
+# Source0-md5: baee5248b6bbaf20beae944d8114ad7f
 Source1:       context.xml
 Patch0:                webxml.patch
 URL:           http://www.jenkins-ci.org/
@@ -93,6 +91,15 @@ fi
 %postun
 %tomcat_clear_cache %{name}
 
+%triggerpostun -- %{name} < 1.509.1
+test -f /var/lib/jenkins/hudson.model.UpdateCenter.xml || return
+echo "Changing update center URL to LTS in /var/lib/jenkins/hudson.model.UpdateCenter.xml"
+echo "See https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line"
+sed -i.rpmorig -e 's,http://updates.jenkins-ci.org/update-center.json,http://updates.jenkins-ci.org/stable/update-center.json,' \
+       /var/lib/jenkins/hudson.model.UpdateCenter.xml
+echo "Clearing /var/lib/jenkins/updates"
+rm -rf /var/lib/jenkins/updates
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.083937 seconds and 4 git commands to generate.