FYI I am already using a similar script to calculate latest Nexus artifact for a given integration branch (note if you do not want to download integration git, you can replace BUNDLEVERSION=0.3.0-SNAPSHOT in the script below):
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is $BUNDLEVERSION" # Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is $TIMESTAMP" BUNDLEFOLDER="distribution-${DISTRIBUTION}-${BUNDLEVERSION}" BUNDLE="distribution-${DISTRIBUTION}-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}" echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
Then I do wget ${BUNDLEURL} to download the distribution, unzip ${BUNDLE}, cd ${BUNDLEFOLDER} to set some configuration and run karaf. All these scripts are available in releng/builder repo [1]
BR/Luis
toggle quoted message
Show quoted text
On Mar 24, 2015, at 3:14 PM, Andrew Grimberg < agrimberg@...> wrote:
|
|
Forgot to mention you have to replace ${DISTRIBUTION} with karaf so the script will look like:
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is ${BUNDLEVERSION}”
# Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is ${TIMESTAMP}”
BUNDLEFOLDER=“distribution-karaf-${BUNDLEVERSION}" BUNDLE=“distribution-karaf-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}”
echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
toggle quoted message
Show quoted text
On Mar 24, 2015, at 6:13 PM, Luis Gomez < ecelgp@...> wrote:
FYI I am already using a similar script to calculate latest Nexus artifact for a given integration branch (note if you do not want to download integration git, you can replace BUNDLEVERSION=0.3.0-SNAPSHOT in the script below):
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is $BUNDLEVERSION" # Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is $TIMESTAMP" BUNDLEFOLDER="distribution-${DISTRIBUTION}-${BUNDLEVERSION}" BUNDLE="distribution-${DISTRIBUTION}-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}" echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
Then I do wget ${BUNDLEURL} to download the distribution, unzip ${BUNDLE}, cd ${BUNDLEFOLDER} to set some configuration and run karaf. All these scripts are available in releng/builder repo [1]
BR/Luis
On Mar 24, 2015, at 3:14 PM, Andrew Grimberg < agrimberg@...> wrote:
|
|
Flavio Fernandes <ffernand@...>
On Mar 24, 2015, at 11:27 PM, Luis Gomez < ecelgp@...> wrote:
Forgot to mention you have to replace ${DISTRIBUTION} with karaf so the script will look like:
As expected, it worked like a champ. Thanks Luis!
@Colin: @Kyle: @Sam: This is the gerrit [1] for a jenkins job that will run tempest against latest ODL. I do not expect to see it passing in the near future, but it may provide us some history to track the progress on tempest harvesting. :)
Thanks,
— flavio
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is ${BUNDLEVERSION}”
# Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is ${TIMESTAMP}”
BUNDLEFOLDER=“distribution-karaf-${BUNDLEVERSION}" BUNDLE=“distribution-karaf-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}”
echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
On Mar 24, 2015, at 6:13 PM, Luis Gomez < ecelgp@...> wrote:
FYI I am already using a similar script to calculate latest Nexus artifact for a given integration branch (note if you do not want to download integration git, you can replace BUNDLEVERSION=0.3.0-SNAPSHOT in the script below):
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is $BUNDLEVERSION" # Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is $TIMESTAMP" BUNDLEFOLDER="distribution-${DISTRIBUTION}-${BUNDLEVERSION}" BUNDLE="distribution-${DISTRIBUTION}-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}" echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
Then I do wget ${BUNDLEURL} to download the distribution, unzip ${BUNDLE}, cd ${BUNDLEFOLDER} to set some configuration and run karaf. All these scripts are available in releng/builder repo [1]
BR/Luis
On Mar 24, 2015, at 3:14 PM, Andrew Grimberg < agrimberg@...> wrote:
|
|
Thanks! That's exactly what I wanted. At the very least people can use it to track their progress in fixing bugs that are breaking tempest.
--Colin
On Mar 28, 2015 11:33 AM, "Flavio Fernandes" < ffernand@...> wrote:
toggle quoted message
Show quoted text
On Mar 24, 2015, at 11:27 PM, Luis Gomez < ecelgp@...> wrote:
Forgot to mention you have to replace ${DISTRIBUTION} with karaf so the script will look like:
As expected, it worked like a champ. Thanks Luis!
@Colin: @Kyle: @Sam: This is the gerrit [1] for a jenkins job that will run tempest against latest ODL. I do not expect to see it passing in the near future, but it may provide us some history to track the progress on tempest harvesting. :)
Thanks,
— flavio
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is ${BUNDLEVERSION}”
# Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is ${TIMESTAMP}”
BUNDLEFOLDER=“distribution-karaf-${BUNDLEVERSION}" BUNDLE=“distribution-karaf-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}”
echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
On Mar 24, 2015, at 6:13 PM, Luis Gomez < ecelgp@...> wrote:
FYI I am already using a similar script to calculate latest Nexus artifact for a given integration branch (note if you do not want to download integration git, you can replace BUNDLEVERSION=0.3.0-SNAPSHOT in the script below):
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is $BUNDLEVERSION" # Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is $TIMESTAMP" BUNDLEFOLDER="distribution-${DISTRIBUTION}-${BUNDLEVERSION}" BUNDLE="distribution-${DISTRIBUTION}-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}" echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
Then I do wget ${BUNDLEURL} to download the distribution, unzip ${BUNDLE}, cd ${BUNDLEFOLDER} to set some configuration and run karaf. All these scripts are available in releng/builder repo [1]
BR/Luis
On Mar 24, 2015, at 3:14 PM, Andrew Grimberg < agrimberg@...> wrote:
|
|
Flavio Fernandes <ffernand@...>
On Apr 1, 2015, at 9:22 AM, Colin Dixon < colin@...> wrote:
Thanks! That's exactly what I wanted. At the very least people can use it to track their progress in fixing bugs that are breaking tempest. —Colin
To make it a bit easier to display the counts, consider using this handy script I added:
It will grab a json from jenkins to know what builds took place, and then extract the status from testr_results.html in the build artifact for the build.
— flavio
On Mar 28, 2015 11:33 AM, "Flavio Fernandes" < ffernand@...> wrote: On Mar 24, 2015, at 11:27 PM, Luis Gomez < ecelgp@...> wrote:
Forgot to mention you have to replace ${DISTRIBUTION} with karaf so the script will look like:
As expected, it worked like a champ. Thanks Luis!
@Colin: @Kyle: @Sam: This is the gerrit [1] for a jenkins job that will run tempest against latest ODL. I do not expect to see it passing in the near future, but it may provide us some history to track the progress on tempest harvesting. :)
Thanks,
— flavio
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is ${BUNDLEVERSION}”
# Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is ${TIMESTAMP}”
BUNDLEFOLDER=“distribution-karaf-${BUNDLEVERSION}" BUNDLE=“distribution-karaf-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}”
echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
On Mar 24, 2015, at 6:13 PM, Luis Gomez < ecelgp@...> wrote:
FYI I am already using a similar script to calculate latest Nexus artifact for a given integration branch (note if you do not want to download integration git, you can replace BUNDLEVERSION=0.3.0-SNAPSHOT in the script below):
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is $BUNDLEVERSION" # Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is $TIMESTAMP" BUNDLEFOLDER="distribution-${DISTRIBUTION}-${BUNDLEVERSION}" BUNDLE="distribution-${DISTRIBUTION}-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}" echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
Then I do wget ${BUNDLEURL} to download the distribution, unzip ${BUNDLE}, cd ${BUNDLEFOLDER} to set some configuration and run karaf. All these scripts are available in releng/builder repo [1]
BR/Luis
On Mar 24, 2015, at 3:14 PM, Andrew Grimberg < agrimberg@...> wrote:
|
|
Cool! That's really, really useful. I wonder if we can't get it to actually feed back into Jenkins to list the failed tests using the Jenkins APIs.
--Colin
toggle quoted message
Show quoted text
On Thu, Apr 9, 2015 at 4:42 PM, Flavio Fernandes <ffernand@...> wrote:
On Apr 1, 2015, at 9:22 AM, Colin Dixon < colin@...> wrote:
Thanks! That's exactly what I wanted. At the very least people can use it to track their progress in fixing bugs that are breaking tempest. —Colin
To make it a bit easier to display the counts, consider using this handy script I added:
It will grab a json from jenkins to know what builds took place, and then extract the status from testr_results.html in the build artifact for the build.
— flavio
On Mar 28, 2015 11:33 AM, "Flavio Fernandes" < ffernand@...> wrote: On Mar 24, 2015, at 11:27 PM, Luis Gomez < ecelgp@...> wrote:
Forgot to mention you have to replace ${DISTRIBUTION} with karaf so the script will look like:
As expected, it worked like a champ. Thanks Luis!
@Colin: @Kyle: @Sam: This is the gerrit [1] for a jenkins job that will run tempest against latest ODL. I do not expect to see it passing in the near future, but it may provide us some history to track the progress on tempest harvesting. :)
Thanks,
— flavio
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is ${BUNDLEVERSION}”
# Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is ${TIMESTAMP}”
BUNDLEFOLDER=“distribution-karaf-${BUNDLEVERSION}" BUNDLE=“distribution-karaf-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}”
echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
On Mar 24, 2015, at 6:13 PM, Luis Gomez < ecelgp@...> wrote:
FYI I am already using a similar script to calculate latest Nexus artifact for a given integration branch (note if you do not want to download integration git, you can replace BUNDLEVERSION=0.3.0-SNAPSHOT in the script below):
# Extract the BUNDLEVERSION from the pom.xml BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null` echo "Bundle version is $BUNDLEVERSION" # Acquire the timestamp information from maven-metadata.xml wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` echo "Nexus timestamp is $TIMESTAMP" BUNDLEFOLDER="distribution-${DISTRIBUTION}-${BUNDLEVERSION}" BUNDLE="distribution-${DISTRIBUTION}-${TIMESTAMP}.zip" BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}" echo "Distribution bundle URL is ${BUNDLEURL}” echo "Distribution bundle is ${BUNDLE}” echo "Distribution folder is ${BUNDLEFOLDER}"
Then I do wget ${BUNDLEURL} to download the distribution, unzip ${BUNDLE}, cd ${BUNDLEFOLDER} to set some configuration and run karaf. All these scripts are available in releng/builder repo [1]
BR/Luis
On Mar 24, 2015, at 3:14 PM, Andrew Grimberg < agrimberg@...> wrote:
|
|