[
https://issues.jboss.org/browse/JBIDE-21785?page=com.atlassian.jira.plugi...
]
Nick Boldt updated JBIDE-21785:
-------------------------------
Description:
Currently we have jobs which handle building from commits, then publishing to a builds/
folder.
And I've prototyped a couple jobs [1], [2] which can handle building from PRs, then
publishing to a pulls/ folder.
[1]
http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-build-site...
[2]
http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-build-site...
Now we need to combine the jobs so that we can do both deployments from the same job, eg.,
{code}
if [[ ! ${ghprbPullId} ]]; then
mvnStep1="clean install -DskipTests" # build without tests
mvnStep2="deploy -Pdeploy-to-jboss.org" # deploy if p2diff or SHA check shows
difference into /builds/ folder
mvnStep3="verify" # run tests & fail job if problems found
else
mvnStep1="clean deploy -Pdeploy-pr" # build and test, then deploy to /pulls/
folder if successful or fail if tests fail
mvnStep2="NONE"
mvnStep3="NONE"
fi
{code}
was:
Currently we have jobs which handle building from commits, then publishing to a builds/
folder.
And I've prototyped a couple jobs [1], [2] which can handle building from PRs, then
publishing to a pulls/ folder.
Now we need to combine the jobs so that we can do both deployments from the same job, eg.,
{code}
if [[ ! ${ghprbPullId} ]]; then
mvnStep1="clean install -DskipTests" # build without tests
mvnStep2="deploy -Pdeploy-to-jboss.org" # deploy if p2diff or SHA check shows
difference into /builds/ folder
mvnStep3="verify" # run tests & fail job if problems found
else
mvnStep1="clean deploy -Pdeploy-pr" # build and test, then deploy to /pulls/
folder if successful or fail if tests fail
mvnStep2="NONE"
mvnStep3="NONE"
fi
{code}
enable hybrid jobs which can handle both commits and PRs with
different publishing patterns
-------------------------------------------------------------------------------------------
Key: JBIDE-21785
URL:
https://issues.jboss.org/browse/JBIDE-21785
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: build
Affects Versions: 4.3.1.Beta2
Reporter: Nick Boldt
Fix For: 4.3.1.CR1, 4.4.0.Alpha1
Currently we have jobs which handle building from commits, then publishing to a builds/
folder.
And I've prototyped a couple jobs [1], [2] which can handle building from PRs, then
publishing to a pulls/ folder.
[1]
http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-build-site...
[2]
http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-build-site...
Now we need to combine the jobs so that we can do both deployments from the same job,
eg.,
{code}
if [[ ! ${ghprbPullId} ]]; then
mvnStep1="clean install -DskipTests" # build without tests
mvnStep2="deploy -Pdeploy-to-jboss.org" # deploy if p2diff or SHA check shows
difference into /builds/ folder
mvnStep3="verify" # run tests & fail job if problems found
else
mvnStep1="clean deploy -Pdeploy-pr" # build and test, then deploy to /pulls/
folder if successful or fail if tests fail
mvnStep2="NONE"
mvnStep3="NONE"
fi
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)