[
https://issues.jboss.org/browse/JBIDE-21642?page=com.atlassian.jira.plugi...
]
Nick Boldt edited comment on JBIDE-21642 at 2/3/16 9:29 PM:
------------------------------------------------------------
Experimenting with
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-birt_4.3.... to build
from *refs/tags/jbosstools-4.3.0.Final*
To build using the same details as an old build, we need to pass in multiple overrides for
the timestamp and build number:
{code}-DBUILD_NUMBER=33 -DBUILD_ID=2015-09-24_22-32-00
-Dmaven.build.timestamp=2015-09-25T04:32:00Z
-DforceContextQualifier=Final-v20150924-2232-B33{code}
Side note: don't wrap quotes around
-DforceContextQualifier="Final-v20150924-2232-B33" when passing it to the bash
script that does the deployment, or you get an error:
{code}
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-packaging-plugin:0.23.1:build-qualifier-aggregator
(default-build-qualifier-aggregator) on project birt.site:
Invalid build qualifier, it does not match the OSGi qualifier constraint
([0..9]|[a..zA..Z]|'_'|'-')
{code}
was (Author: nickboldt):
Experimenting with
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-birt_4.3.... to build
from *refs/tags/jbosstools-4.3.0.Final*
First thing we need to do is pass in multiple overrides for the timestamp and build
number:
{code}-DBUILD_NUMBER=33 -DBUILD_ID=2015-09-24_22-32-00
-Dmaven.build.timestamp=2015-09-25T04:32:00Z
-DforceContextQualifier=Final-v20150924-2232-B33{code}
Seems the first problem is that we can't do a clean install followed by a deploy
because:
{code}
+ /qa/tools/opt/apache-maven-3.2.5//bin/mvn deploy -Pdeploy-to-jboss.org
-Dmaven.repo.local=/mnt/hudson_workspace/workspace/jbosstools-birt_4.3.mars/.repository
-Djbosstools_site_stream= -B -U -fae -e -Djbosstools_site_stream=4.3.mars -P
hudson,pack200,unified.target -DBUILD_NUMBER=33 -DBUILD_ID=2015-09-24_22-32-00
-Dmaven.build.timestamp=2015-09-25T04:32:00Z
'-DforceContextQualifier="Final-v20150924-2232-B33"'
...
[WARNING] The following locally built units have been used to resolve project
dependencies:
[WARNING] org.jboss.tools.birt.feature.feature.group/1.8.0.Final-v20150924-2232-B33
[WARNING]
org.jboss.tools.birt.test.feature.source.feature.group/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.core/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.oda.ui/1.8.0.Final-v20150924-2232-B33
[WARNING]
org.jboss.tools.birt.feature.source.feature.group/1.8.0.Final-v20150924-2232-B33
[WARNING]
org.jboss.tools.birt.test.feature.feature.group/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.test.feature.feature.jar/1.8.0.Final-v20150924-2232-B33
[WARNING]
org.jboss.tools.birt.feature.source.feature.jar/1.8.0.Final-v20150924-2232-B33
[WARNING]
org.jboss.tools.birt.test.feature.source.feature.jar/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.oda.ui.source/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.oda.source/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.core.source/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.oda/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.core.test/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.core.test.source/1.8.0.Final-v20150924-2232-B33
[WARNING] org.jboss.tools.birt.feature.feature.jar/1.8.0.Final-v20150924-2232-B33
...
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-packaging-plugin:0.23.1:build-qualifier-aggregator
(default-build-qualifier-aggregator) on project birt.site: Invalid build qualifier, it
does not match the OSGi qualifier constraint ([0..9]|[a..zA..Z]|'_'|'-')
-> [Help 1]{code}
So we can do build & deployment in one step:
{code}
[jbosstools-birt_4.3.mars.0] $ /qa/tools/opt/apache-maven-3.2.5/bin/mvn -f
/mnt/hudson_workspace/workspace/jbosstools-birt_4.3.mars.0/sources/pom.xml
-DTARGET_PLATFORM_VERSION=4.50.2.Beta2-SNAPSHOT
-DTARGET_PLATFORM_VERSION_MAXIMUM=4.52.0.Beta2-SNAPSHOT '-DMAVEN_FLAGS=-B -U -fae -e
-Djbosstools_site_stream=4.3.mars -P hudson,pack200,unified.target -DBUILD_NUMBER=33
-DBUILD_ID=2015-09-24_22-32-00 -Dmaven.build.timestamp=2015-09-25T04:32:00Z
-DforceContextQualifier="Final-v20150924-2232-B33"'
-DskipRevisionCheckWhenPublishing=true
-Ddownload.cache.directory=/home/hudson/static_build_env/jbds/download-cache
-Dmaven.test.skip=true -DJOB_NAME=jbosstools-birt_4.3.mars.0 -DBUILD_NUMBER=1
-DBUILD_ID=2016-02-03_19-16-22 -DskipPrivateRequirements=false
-Djbosstools.test.jre.8=/qa/tools/opt/amd64/jdk1.8.0_last -DskipITests=true
-Djbosstools.test.jre.7=/qa/tools/opt/amd64/jdk1.7.0_last
-Djbosstools.test.jre.6=/qa/tools/opt/amd64/jdk1.6.0_last
-Djbosstools.test.jre.5=/qa/tools/opt/amd64/jdk1.5.0_last -DskipBaselineComparison=false
-Dmaven.repo.local=/mnt/hudson_workspace/workspace/jbosstools-birt_4.3.mars.0/.repository
clean deploy -Pdeploy-to-jboss.org -B -U -fae -e -Djbosstools_site_stream=4.3.mars -P
hudson,pack200,unified.target -DBUILD_NUMBER=33 -DBUILD_ID=2015-09-24_22-32-00
-Dmaven.build.timestamp=2015-09-25T04:32:00Z
-DforceContextQualifier=Final-v20150924-2232-B33 -gs /home/hudson/.m2/settings.xml
-DTARGET_PLATFORM_VERSION=4.50.2.Beta2-SNAPSHOT
{code}
or do the usual build, deploy, then test. Just need to ensure we don't wrap quotes
around -DforceContextQualifier="Final-v20150924-2232-B33" when passing it to the
bash script that does the deployment.
verify if it's possible to build, deploy, & test a JBT
project from an existing tag
-----------------------------------------------------------------------------------
Key: JBIDE-21642
URL:
https://issues.jboss.org/browse/JBIDE-21642
Project: Tools (JBoss Tools)
Issue Type: Bug
Reporter: Nick Boldt
Usecase:
We want to rebuild something that we released a few months ago, for which there have been
no significant changes (other than bumping feature/plugin versions and using a newer
parent pom / target platform).
So, we need a way to run a build from a tag (not a branch) and to ensure that
re-deployment to /snapshots/builds/JOBNAME/ works as expected.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)