Hello community,

here is the log from the commit of package yast2-devtools for openSUSE:Factory 
checked in at 2015-03-29 20:17:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-devtools (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-devtools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-devtools"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-devtools/yast2-devtools.changes    
2015-01-21 21:52:22.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-devtools.new/yast2-devtools.changes       
2015-03-29 20:17:40.000000000 +0200
@@ -1,0 +2,10 @@
+Thu Mar 26 15:12:57 UTC 2015 - jreidin...@suse.com
+
+- yast-jenkins-modify:
+  - handle correctly modules that do not have github repo in
+    yast-{mod} format
+  - fix used sed to handle correctly oneliner xml
+  - improve error reporting for quicker detection of problems
+- 3.1.30
+
+-------------------------------------------------------------------

Old:
----
  yast2-devtools-3.1.29.tar.bz2

New:
----
  yast2-devtools-3.1.30.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-devtools.spec ++++++
--- /var/tmp/diff_new_pack.0FjO8o/_old  2015-03-29 20:17:41.000000000 +0200
+++ /var/tmp/diff_new_pack.0FjO8o/_new  2015-03-29 20:17:41.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-devtools
-Version:        3.1.29
+Version:        3.1.30
 Release:        0
 Url:            http://github.com/yast/yast-devtools
 

++++++ yast2-devtools-3.1.29.tar.bz2 -> yast2-devtools-3.1.30.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-devtools-3.1.29/jenkins-tools/yast-jenkins-modify.rb 
new/yast2-devtools-3.1.30/jenkins-tools/yast-jenkins-modify.rb
--- old/yast2-devtools-3.1.29/jenkins-tools/yast-jenkins-modify.rb      
2015-01-21 15:43:10.000000000 +0100
+++ new/yast2-devtools-3.1.30/jenkins-tools/yast-jenkins-modify.rb      
2015-03-26 16:48:07.000000000 +0100
@@ -17,17 +17,38 @@
 URL_BASE = "https://#{USER}:#{PWD}@ci.opensuse.org";
 #URL_BASE = "http://river.suse.de";
 
+# modules that do not follow yast-{mod} convention
+SPECIAL_MOD_NAMES = [
+  "skelcd-control-SLES",
+  "skelcd-control-SLED",
+  "skelcd-control-openSUSE",
+  "skelcd-control-openSUSE-LangAddOn",
+  "skelcd-control-SLES-for-VMware",
+  "y2r"
+]
+
+# All jobs on Jenkins have the name "yast-$MODULE-$BRANCH", but ARGV gets just 
a list of $MODULE
 ARGV.each do |mod|
   #test if module already exist
   response_code = `curl -sL -w "%{http_code}" 
#{URL_BASE}/job/#{JOB_NAME_PATTERN % mod}/ -o /dev/null`
   raise "module #{mod} do not exists" unless response_code == "200"
 
   FileUtils.rm_f "config.xml.tmp"
+  git_name = SPECIAL_MOD_NAMES.include?(mod) ? mod : "yast-#{mod}"
   # now modify config.xml to fit given module
-  `sed 's/yast-.*\.git/yast-#{mod}.git/' config.xml > config.xml.tmp`
+  `sed 's/yast-[a-z_-]*\.git/#{git_name}.git/' config.xml > config.xml.tmp`
 
   # adress found from https://ci.opensuse.org/api
-  res = `curl -X POST #{URL_BASE}/job/#{JOB_NAME_PATTERN % mod}/config.xml 
--header "Content-Type:application/xml" -d @config.xml.tmp`
-  puts "ERROR: #{res}" if $?.exitstatus != 0
-  puts "ERROR: Wrong Credentials. \n #{res}" if res =~ /Authentication 
required/
+  cmd = "curl -X POST #{URL_BASE}/job/#{JOB_NAME_PATTERN % mod}/config.xml 
--header \"Content-Type:application/xml\" -d @config.xml.tmp"
+  puts "Sending data for module #{git_name} with #{cmd}"
+  res = `#{cmd}`
+  puts "ERROR: curl exited with non-zero value" if $?.exitstatus != 0
+  puts case res
+    when ""
+      "Succeed"
+    when /Authentication required/
+      "ERROR: Wrong Credentials. \n #{res}"
+    else
+      "non-standard response: #{res}"
+    end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-devtools-3.1.29/package/yast2-devtools.changes 
new/yast2-devtools-3.1.30/package/yast2-devtools.changes
--- old/yast2-devtools-3.1.29/package/yast2-devtools.changes    2015-01-21 
15:43:10.000000000 +0100
+++ new/yast2-devtools-3.1.30/package/yast2-devtools.changes    2015-03-26 
16:48:07.000000000 +0100
@@ -1,4 +1,14 @@
 -------------------------------------------------------------------
+Thu Mar 26 15:12:57 UTC 2015 - jreidin...@suse.com
+
+- yast-jenkins-modify:
+  - handle correctly modules that do not have github repo in
+    yast-{mod} format
+  - fix used sed to handle correctly oneliner xml
+  - improve error reporting for quicker detection of problems
+- 3.1.30
+
+-------------------------------------------------------------------
 Wed Jan 21 13:05:25 UTC 2015 - jreidin...@suse.com
 
 - find-unused-published: support new ruby hash syntax
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-devtools-3.1.29/package/yast2-devtools.spec 
new/yast2-devtools-3.1.30/package/yast2-devtools.spec
--- old/yast2-devtools-3.1.29/package/yast2-devtools.spec       2015-01-21 
15:43:10.000000000 +0100
+++ new/yast2-devtools-3.1.30/package/yast2-devtools.spec       2015-03-26 
16:48:07.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-devtools
-Version:        3.1.29
+Version:        3.1.30
 Release:        0
 Url:            http://github.com/yast/yast-devtools
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-devtools-3.1.29/travis-tools/travis_setup.sh 
new/yast2-devtools-3.1.30/travis-tools/travis_setup.sh
--- old/yast2-devtools-3.1.29/travis-tools/travis_setup.sh      2015-01-21 
15:43:10.000000000 +0100
+++ new/yast2-devtools-3.1.30/travis-tools/travis_setup.sh      2015-03-26 
16:48:07.000000000 +0100
@@ -49,6 +49,8 @@
       ;;
     # install Ruby gems
     g)
+      # install Ruby headers (needed to compile binary gems)
+      sudo apt-get install ruby-dev
       sudo gem install $OPTARG
       ;;
     \?)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to