From 370eb1a0b89c3545f8dbad6001c73fd225e340f8 Mon Sep 17 00:00:00 2001 From: Frederic Gurr Date: Mon, 15 Jan 2018 15:13:13 +0100 Subject: [PATCH] Fix Git SCM URL --- src/main/resources/xsl/config.job.xsl | 29 ++--- .../cbi/hipp2jipp/XslTransformerTest.java | 8 ++ .../config.job.hudson-collections.xml | 118 ++++++++++++++++++ ...dson-collections.transformed_reference.xml | 43 +++++++ 4 files changed, 182 insertions(+), 16 deletions(-) create mode 100644 xml/original/config.job.hudson-collections.xml create mode 100644 xml/reference/config.job.hudson-collections.transformed_reference.xml diff --git a/src/main/resources/xsl/config.job.xsl b/src/main/resources/xsl/config.job.xsl index 03adbfe..39514e5 100644 --- a/src/main/resources/xsl/config.job.xsl +++ b/src/main/resources/xsl/config.job.xsl @@ -485,22 +485,19 @@ - - - - - - - - :// - - - @ - - - - - + + + :// + + + + @ + + + + : + + diff --git a/src/test/java/org/eclipse/cbi/hipp2jipp/XslTransformerTest.java b/src/test/java/org/eclipse/cbi/hipp2jipp/XslTransformerTest.java index afffabc..7129cb9 100644 --- a/src/test/java/org/eclipse/cbi/hipp2jipp/XslTransformerTest.java +++ b/src/test/java/org/eclipse/cbi/hipp2jipp/XslTransformerTest.java @@ -343,6 +343,14 @@ public void configJobTest_recommenders2() { transformAndCompare("recommenders2", "config.job.hudson", "matrix-project"); } + /** + * Tests Git SCM URL is transformed correctly + */ + @Test + public void configJobTest_collections() { + transformAndCompareFreestyleJob("collections"); + } + @Test public void copyViewsTest_positive() { testCopyViews("config.main.jenkins-cbi.xml", "config.main.hudson-cbi.xml"); diff --git a/xml/original/config.job.hudson-collections.xml b/xml/original/config.job.hudson-collections.xml new file mode 100644 index 0000000..debb731 --- /dev/null +++ b/xml/original/config.job.hudson-collections.xml @@ -0,0 +1,118 @@ + + + + + + + hudson-plugins-disk_usage-DiskUsageProperty + + + false + + + + builders + + + + false + Run gradle build and upload zip/tar files to download site. + export GRADLE_OPTS="-Dhttp.proxyHost=proxy.eclipse.org -Dhttp.proxyPort=9898 -Dhttps.proxyHost=proxy.eclipse.org -Dhttps.proxyPort=9898 -DhttpnonProxyHosts=*.eclipse.org -DhttpsnonProxyHosts=*.eclipse.org -Dftp.proxyHost=proxy.eclipse.org -Dftp.proxyPort=9898 -DftpnonProxyHosts=*.eclipse.org" + +./gradlew clean build +cp build/distributions/gsc-ec-converter-*.zip /home/data/httpd/download.eclipse.org/collections/ +cp build/distributions/gsc-ec-converter-*.tar /home/data/httpd/download.eclipse.org/collections/ + + + + false + + + + jdk + + jdk1.8.0-latest + false + + + + scm + + + 1 + + + origin + + + eclipse/gsc-ec-converter.git + eclipse/gsc-ec-converter.git + git + -1 + github.com + + + + + + true + true + refs/heads/* + refs/remotes/origin/* + + + + git-upload-pack + git-receive-pack + AUTO_FOLLOW + false + 0 + + + + + + master + + + + false + false + false + false + false + false + false + false + + Default + + + + + + + + false + true + + false + + + + false + someone@somewhere.com + 1458807353072 + + + + hudson-plugins-disk_usage-DiskUsageProperty + + + false + false + false + false + false + false + \ No newline at end of file diff --git a/xml/reference/config.job.hudson-collections.transformed_reference.xml b/xml/reference/config.job.hudson-collections.transformed_reference.xml new file mode 100644 index 0000000..603e490 --- /dev/null +++ b/xml/reference/config.job.hudson-collections.transformed_reference.xml @@ -0,0 +1,43 @@ + + + + false + + + + + + + origin + +refs/heads/*:refs/remotes/origin/* + git@github.com:eclipse/gsc-ec-converter.git + + + + + master + + + false + + + + false + false + false + false + jdk1.8.0-latest + + + + export GRADLE_OPTS="-Dhttp.proxyHost=proxy.eclipse.org -Dhttp.proxyPort=9898 -Dhttps.proxyHost=proxy.eclipse.org -Dhttps.proxyPort=9898 -DhttpnonProxyHosts=*.eclipse.org -DhttpsnonProxyHosts=*.eclipse.org -Dftp.proxyHost=proxy.eclipse.org -Dftp.proxyPort=9898 -DftpnonProxyHosts=*.eclipse.org" + +./gradlew clean build +cp build/distributions/gsc-ec-converter-*.zip /home/data/httpd/download.eclipse.org/collections/ +cp build/distributions/gsc-ec-converter-*.tar /home/data/httpd/download.eclipse.org/collections/ + + + + + +