[jbosstools-issues] [JBoss JIRA] (JBIDE-24964) HUDSON_STATIC_ENV not defined for windows and osx slaves

Martin Malina (JIRA) issues at jboss.org
Wed Sep 27 08:56:00 EDT 2017


     [ https://issues.jboss.org/browse/JBIDE-24964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Malina resolved JBIDE-24964.
-----------------------------------
    Fix Version/s: 4.5.1.AM3
                       (was: 4.5.x)
       Resolution: Done


My commit for Windows was merged.

As far as I can see it works as expected now.
Retrieved from https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/server.it.weekly/65/jdk=jdk1.8,label_exp=win10/console :
{code}
12:38:35 [INFO] --- download-maven-plugin:1.2.0:wget (download-pluginCustomization) @ org.jboss.tools.as.itests ---
12:38:35 [INFO] Got from cache: S:\devstudio\download-cache\pluginCustomization.ini
12:38:35 [INFO] 
12:38:35 [INFO] --- download-maven-plugin:1.2.0:wget (install-as-3.2.8) @ org.jboss.tools.as.itests ---
12:38:48 [INFO] Got from cache: S:\devstudio\download-cache\jboss-3.2.8.SP1.zip
12:39:32 [INFO] 
12:39:32 [INFO] --- download-maven-plugin:1.2.0:wget (install-as-4.0.5) @ org.jboss.tools.as.itests ---
12:39:49 [INFO] Got from cache: S:\devstudio\download-cache\jboss-4.0.5.GA.zip
12:40:42 [INFO] 
12:40:42 [INFO] --- download-maven-plugin:1.2.0:wget (install-as-5.0.1) @ org.jboss.tools.as.itests ---
12:41:06 [INFO] Got from cache: S:\devstudio\download-cache\jboss-5.0.1.GA.zip
12:42:26 [INFO] 
12:42:26 [INFO] --- download-maven-plugin:1.2.0:wget (install-as-5.1.0) @ org.jboss.tools.as.itests ---
12:42:55 [INFO] Got from cache: S:\devstudio\download-cache\jboss-5.1.0.GA.zip
12:44:33 [INFO] 
12:44:33 [INFO] --- download-maven-plugin:1.2.0:wget (install-eap-4.3.0) @ org.jboss.tools.as.itests ---
12:45:35 [INFO] Got from cache: S:\devstudio\download-cache\jboss-eap-4.3.0.GA_CP10.zip
{code}

I will note one thing though. The cache only works for the download maven plugin. Not if maven artifact dependency is used to get a zip from maven. Like here:
{code}
12:36:25 [INFO] Configured Artifact: org.jboss.as:jboss-as-dist:7.0.0.Final:zip
12:36:25 [INFO] Downloading: https://maven.repository.redhat.com/earlyaccess/all/org/jboss/as/jboss-as-dist/7.0.0.Final/jboss-as-dist-7.0.0.Final.zip
12:36:25 [INFO] Downloading: http://maven.repository.redhat.com/ga/org/jboss/as/jboss-as-dist/7.0.0.Final/jboss-as-dist-7.0.0.Final.zip
12:36:25 [INFO] Downloading: https://repository.jboss.org/nexus/content/repositories/releases/org/jboss/as/jboss-as-dist/7.0.0.Final/jboss-as-dist-7.0.0.Final.zip
12:36:41 [INFO] Downloaded: https://repository.jboss.org/nexus/content/repositories/releases/org/jboss/as/jboss-as-dist/7.0.0.Final/jboss-as-dist-7.0.0.Final.zip (73845 KB at 4603.2 KB/sec)
{code}

So in light of this it may make sense to use wget downloads instead of maven dependencies where possible.
This is the relevant pom:
https://github.com/jbosstools/jbosstools-server/blob/master/as/itests/pom.xml

> HUDSON_STATIC_ENV not defined for windows and osx slaves
> --------------------------------------------------------
>
>                 Key: JBIDE-24964
>                 URL: https://issues.jboss.org/browse/JBIDE-24964
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: build, qa
>    Affects Versions: 4.5.1.AM1
>            Reporter: Nick Boldt
>            Assignee: Pavol Srna
>             Fix For: 4.5.1.AM3
>
>
> On windows and osx slaves, HUDSON_STATIC_ENV is not defined. On rhel7 slaves, it's defined as /home/hudson/static_build_env
> Could an equivalent path be set for other OSes, so we can benefit from this NFS-mounted shared space? 
> Currently when we run itests on multiple OSes, we see stuff like this, when passing the path to -Ddownload.cache.directory=:
> {code:title=rhel7 - HUDSON_STATIC_ENV = /home/hudson/static_build_env}
> 16:05:48 [rhel7] $ /mnt/hudson_workspace/tools/hudson.tasks.Maven_MavenInstallation/maven-3.3.9/bin/mvn -s /tmp/settings2086504014812240990.xml -Djdk=openjdk-1.8 -Dlabel_exp=rhel7 
> -Ddownload.cache.directory=/home/hudson/static_build_env/devstudio/download-cache 
> -Dsurefire.timeout=10000 -DJOB_NAME=server.it.weekly/jdk=openjdk-1.8,label_exp=rhel7 -DBUILD_NUMBER=24 -DskipPrivateRequirements=false -Djbosstools.test.jre.8=/qa/tools/opt/x86_64/jdk1.8.0_last -Dsurefire.itests.timeout=10000 -Djbosstools.test.jre.7=/qa/tools/opt/x86_64/jdk1.7.0_last -Djbosstools.test.jre.6=/qa/tools/opt/x86_64/jdk1.6.0_last -Djbosstools.test.jre.5=/qa/tools/opt/x86_64/jdk1.5.0_last -DskipBaselineComparison=true -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true clean install -B -U -fae -e -P hudson,pack200,unified.target,maximum -DjgitDirtyWorkingTree=warning
> {code}
> {code:title=win81 - HUDSON_STATIC_ENV not defined}
> 16:05:51 [win81] $ cmd.exe /C "\mnt\hudson_workspace\tools\hudson.tasks.Maven_MavenInstallation\maven-3.3.9\bin\mvn.cmd -s C:\Users\jbossqa\AppData\Local\Temp\settings7229513778735293013.xml -Djdk=openjdk-1.8 -Dlabel_exp=win81 
> -Ddownload.cache.directory=${HUDSON_STATIC_ENV}/devstudio/download-cache 
> -Dsurefire.timeout=10000 "-DJOB_NAME=server.it.weekly/jdk=openjdk-1.8,label_exp=win81" -DBUILD_NUMBER=24 -DskipPrivateRequirements=false -Djbosstools.test.jre.8=T:\opt\windows\amd64\jdk1.8.0_last -Dsurefire.itests.timeout=10000 -Djbosstools.test.jre.7=T:\opt\windows\amd64\jdk1.7.0_last -Djbosstools.test.jre.6=T:\opt\windows\amd64\jdk1.7.0_last -Djbosstools.test.jre.5=T:\opt\windows\amd64\jdk1.7.0_last -DskipBaselineComparison=true -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true clean install -B -U -fae -e -P "hudson,pack200,unified.target,maximum" -DjgitDirtyWorkingTree=warning && exit %%ERRORLEVEL%%"
> {code}
> {code:title=win10 - HUDSON_STATIC_ENV not defined}
> 16:05:48 [win10] $ cmd.exe /C "\mnt\hudson_workspace\tools\hudson.tasks.Maven_MavenInstallation\maven-3.3.9\bin\mvn.cmd -s C:\Users\jbossqa\AppData\Local\Temp\settings8339429706904285132.xml -Djdk=openjdk-1.8 -Dlabel_exp=win10 
> -Ddownload.cache.directory=${HUDSON_STATIC_ENV}/devstudio/download-cache 
> -Dsurefire.timeout=10000 "-DJOB_NAME=server.it.weekly/jdk=openjdk-1.8,label_exp=win10" -DBUILD_NUMBER=24 -DskipPrivateRequirements=false -Djbosstools.test.jre.8=T:\opt\windows\amd64\jdk1.8.0_last -Dsurefire.itests.timeout=10000 -Djbosstools.test.jre.7=T:\opt\windows\amd64\jdk1.7.0_last -Djbosstools.test.jre.6=T:\opt\windows\amd64\jdk1.7.0_last -Djbosstools.test.jre.5=T:\opt\windows\amd64\jdk1.7.0_last -DskipBaselineComparison=true -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true clean install -B -U -fae -e -P "hudson,pack200,unified.target,maximum" -DjgitDirtyWorkingTree=warning && exit %%ERRORLEVEL%%"
> {code}
> {code:title=macosx - HUDSON_STATIC_ENV not defined}
> 16:05:46 [macosx] $ /jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven-3.3.9/bin/mvn -s /var/folders/tp/hcfshtz152n2t8y4jfl08w140000gp/T/settings6780477723089804684.xml -Djdk=jdk1.8 -Dlabel_exp=macosx 
> -Ddownload.cache.directory=${HUDSON_STATIC_ENV}/devstudio/download-cache 
> -Dsurefire.timeout=10000 -DJOB_NAME=server.it.weekly/jdk=jdk1.8,label_exp=macosx -DBUILD_NUMBER=24 -DskipPrivateRequirements=false -Djbosstools.test.jre.8=/qa/tools/opt/osx/jdk1.8.0_last -Dsurefire.itests.timeout=10000 -Djbosstools.test.jre.7=/qa/tools/opt/osx/jdk1.7.0_last -Djbosstools.test.jre.6=/qa/tools/opt/osx/jdk1.8.0_last -Djbosstools.test.jre.5=/qa/tools/opt/osx/jdk1.8.0_last -DskipBaselineComparison=true -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true clean install -B -U -fae -e -P hudson,pack200,unified.target,maximum -DjgitDirtyWorkingTree=warning
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list