[jbosstools-issues] [JBoss JIRA] (JBIDE-20148) releng scripts is an outdated version; jobs are not seeing latest from Nexus

Nick Boldt (JIRA) issues at jboss.org
Wed Jul 1 14:24:02 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-20148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085558#comment-13085558 ] 

Nick Boldt edited comment on JBIDE-20148 at 7/1/15 2:23 PM:
------------------------------------------------------------

comment moved to https://issues.jboss.org/browse/JBIDE-20177


was (Author: nickboldt):
If we can migrate this logic into the mojo...

{code}
if [[ ${skipRevisionCheckWhenPublishing} == "true" ]] || [[ $(. ${WORKSPACE}/sources/util/checkLatestPublishedSHA.sh -s ${WORKSPACE}/sources/aggregate/${projectName}-site/target/fullSite/all/repo -t http://download.jboss.org/jbosstools/mars/snapshots/builds/jbosstools-build-sites.aggregate.${projectName}-site_${jbosstools_site_stream}/latest/all/repo/) == "true" ]]; then
{code}

... we'll be able to remove this step in all jobs:

{code}
    <hudson.tasks.Maven>
      <targets>-U -e org.apache.maven.plugins:maven-dependency-plugin:2.9:unpack</targets>
      <mavenName>maven-3.2.5</mavenName>
      <properties>artifact=org.jboss.tools.releng:jbosstools-releng-publish:4.3.0.Beta2-SNAPSHOT:zip
outputDirectory=${WORKSPACE}/sources
trimVersion=true
mdep.stripClassifier=true
mdep.stripVersion=true</properties>
      <usePrivateRepository>false</usePrivateRepository>
      <settings class="jenkins.mvn.DefaultSettingsProvider"/>
      <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
    </hudson.tasks.Maven>
{code}

... and instead, just pass in those vars to maven:

{code}
-DskipRevisionCheckWhenPublishing=${skipRevisionCheckWhenPublishing}
-DcheckLatestPublishedSHA_SOURCE_PATH=${WORKSPACE}/sources/aggregate/${projectName}-site/target/fullSite/all/repo
-DcheckLatestPublishedSHA_TARGET_PATH=http://download.jboss.org/jbosstools/mars/snapshots/builds/jbosstools-build-sites.aggregate.${projectName}-site_${jbosstools_site_stream}/latest/all/repo/
{code}

> releng scripts is an outdated version; jobs are not seeing latest from Nexus
> ----------------------------------------------------------------------------
>
>                 Key: JBIDE-20148
>                 URL: https://issues.jboss.org/browse/JBIDE-20148
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 4.3.0.Beta2
>            Reporter: Nick Boldt
>            Assignee: Mickael Istria
>              Labels: needinfo, nexus
>             Fix For: 4.3.0.Beta2
>
>
> I've made some commits in the 4.3.x branch [0] of the build-ci repo, which should echo more details into the log.
> [0] https://github.com/jbosstools/jbosstools-build-ci/commits/jbosstools-4.3.x
> And the latest commits ARE built and available in Nexus [1], [2]:
> [1] https://repository.jboss.org/nexus/content/repositories/snapshots/org/jboss/tools/releng/jbosstools-releng-publish/4.3.0.Beta2-SNAPSHOT/ [2] https://repository.jboss.org/nexus/content/repositories/snapshots/org/jboss/tools/releng/jbosstools-releng-publish/4.3.0.Beta2-SNAPSHOT/jbosstools-releng-publish-4.3.0.Beta2-20150624.001847-10.zip
> Yet, no such output appears when the job is run, which makes me think that the -d and --del flags are NOT being passed to the script.
> Here's a snippet from https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-build-sites.aggregate.site_master/10189/console :
> {code}
> + /qa/tools/opt/apache-maven-3.2.5//bin/mvn deploy -Pdeploy-to-jboss.org -Dmaven.repo.local=/mnt/hudson_workspace/workspace/jbosstools-build-sites.aggregate.site_master/.repository -B -U -fae -e -P hudson,unified.target,pack200,fetch-source-zips -Djbosstools_site_stream=master
> ...
> [INFO] --- exec-maven-plugin:1.3.2:exec (deploy-snapshot-updatesite) @ org.jboss.tools.site.core ---
> ...
> rsync -arzq --protocol=28 /mnt/hudson_workspace/workspace/jbosstools-build-sites.aggregate.site_master/sources/aggregate/site/target/repository/* tools at filemgmt.jboss.org:/downloads_htdocs/tools/mars/snapshots/updates/core/master/
> {code}
> Yet when I run THE SAME SCRIPT from the workspace via shell, I get what I want:
> {code}
> + . /mnt/hudson_workspace/workspace/jbosstools-build-sites.aggregate.site_master/sources/publish/rsync.sh -s /mnt/hudson_workspace/workspace/jbosstools-build-sites.aggregate.site_master/sources/aggregate/site/target/fullSite/all/repo -t mars/snapshots/updates/core/master --del
> ...
> [DEBUG] RSYNCFLAGS =  --del
> ...
> [INFO] rsync -arzq --protocol=28  --del /mnt/hudson_workspace/workspace/jbosstools-build-sites.aggregate.site_master/sources/aggregate/site/target/fullSite/all/repo/* tools at filemgmt.jboss.org:/downloads_htdocs/tools/mars/snapshots/updates/core/master/
> ++ rsync -arzq --protocol=28 --del ...  tools at filemgmt.jboss.org:/downloads_htdocs/tools/mars/snapshots/updates/core/master/
> {code}
> So... what am I doing wrong? Why isn't the mojo using the latest version of the rsync script, but it's IN the workspace [3] ? 
> [3] https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-build-sites.aggregate.site_master/ws/sources/publish/rsync.sh/*view*/



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list