[jbosstools-issues] [JBoss JIRA] (JBIDE-22819) wrap staging build process with a jenkins job
Nick Boldt (JIRA)
issues at jboss.org
Fri Aug 12 21:19:00 EDT 2016
[ https://issues.jboss.org/browse/JBIDE-22819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278497#comment-13278497 ]
Nick Boldt edited comment on JBIDE-22819 at 8/12/16 9:18 PM:
-------------------------------------------------------------
0. Overall buildflow job: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-buildflow-push-to-staging_master/
1. {code:title=https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-push-to-staging-01-check-versions-branches-root-poms_master/}
// Verify correct version set in org.jboss.tools.foundation.core and devstudio.core.central
// Verify all branches have been created & all root poms point to the correct parent pom version.
{code}
1a. By hand:
* Disable jobs [so far has to be done by script locally because of permissions]
{code}
# kerberos login for the Jenkins server
userpass=nboldt:PASSWORD
stream_jbt=master # or 4.4.neon
stream_ds=master # or 10.0.neon
for j in jbosstools-build.parent_${stream_jbt} jbosstoolstargetplatforms-matrix jbosstools-buildflow_${stream_jbt} jbosstools-composite-install_${stream_jbt} jbosstools-browsersim-standalone_${stream_jbt} jbosstools-build-sites.aggregate.site_${stream_jbt} jbosstools-build-sites.aggregate.coretests-site_${stream_jbt} jbosstools-centraltarget_${stream_jbt} jbosstools-build-sites.aggregate.child-sites_${stream_jbt} devstudio.product_${stream_ds} devstudio.versionwatch_${stream_ds} jbosstools-install-p2director.install-tests.matrix_${stream_jbt} jbosstools-install-grinder.install-tests.matrix_${stream_jbt}; do
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/disable && echo -n ".D"
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/lastBuild/toggleLogKeep && echo -n ".K"
done
echo ""
{code}
1b. Using the buildflow, Jenkins job or by hand:
* Build Discovery Sites
{code}
# kerberos login for the Jenkins server
userpass=nboldt:PASSWORD
versionWithRespin_jbt=4.4.1.AM3 # a, b, c... (not SNAPSHOT!)
stream_jbt=master # or 4.4.neon
stream_ds=master # or 10.0.neon
TARGET_PLATFORM_VERSION_MAX=4.60.1.AM3-SNAPSHOT
TARGET_PLATFORM_CENTRAL_MAX=4.60.1.AM3-SNAPSHOT
for j in jbosstools-discovery_${stream_jbt}; do
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/enable && echo -n ".E"
curl -k -u ${userpass} --data "VERSION=${versionWithRespin_jbt##*.}&TARGET_PLATFORM_VERSION_MAXIMUM=${TARGET_PLATFORM_VERSION_MAX}&JBTCENTRALTARGET_VERSION=${TARGET_PLATFORM_CENTRAL_MAX}" https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/buildWithParameters && echo -n ".B"
sleep 15s
# then disable the job
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/disable && echo -n ".D"
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/lastBuild/toggleLogKeep && echo -n ".K"
done
{code}
2. {code:title=https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-push-to-staging-02-copy-builds-and-update-sites_master/}
// Copy & rename builds & update sites from "snapshots" to "staging"
{code}
3. {code:title=}
// Verify sites are correctly populated using curl | grep to check for contents / 404s; fail if anything missing
{code}
Still To do:
{code}
// 4. TODO: generate PR for Update http://download.jboss.org/jbosstools/neon/staging/updates/
// 5. merge in IS content
// 6. TODO: generate PR for Release the latest staging site to ide-config.properties
// 7. generate notification emails
{code}
8. By hand:
* re-enable jobs [may have to be done by hand because of permissions]
{code}
# kerberos login for the Jenkins server
userpass=nboldt:PASSWORD
versionWithRespin_jbt=4.4.1.AM3 # a, b, c... (not SNAPSHOT!)
stream_jbt=master # or 4.4.neon
stream_ds=master # or 10.0.neon
TARGET_PLATFORM_VERSION_MAX=4.60.1.AM3-SNAPSHOT
TARGET_PLATFORM_CENTRAL_MAX=4.60.1.AM3-SNAPSHOT
for j in jbosstools-discovery_${stream_jbt}; do
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/enable && echo -n ".E"
curl -k -u ${userpass} --data "VERSION=${versionWithRespin_jbt##*.}&TARGET_PLATFORM_VERSION_MAXIMUM=${TARGET_PLATFORM_VERSION_MAX}&JBTCENTRALTARGET_VERSION=${TARGET_PLATFORM_CENTRAL_MAX}" https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/buildWithParameters && echo -n ".B"
sleep 15s
# then disable the job
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/disable && echo -n ".D"
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/lastBuild/toggleLogKeep && echo -n ".K"
done
{code}
* disable the buildflow and push-to-staging jobs [may have to be done by hand because of permissions]
was (Author: nickboldt):
0. Overall buildflow job: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-buildflow-push-to-staging_master/
1. {code:title=https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-push-to-staging-01-check-versions-branches-root-poms_master/}
// Verify correct version set in org.jboss.tools.foundation.core and devstudio.core.central
// Verify all branches have been created & all root poms point to the correct parent pom version.
{code}
1a. By hand:
* Disable jobs [so far has to be done by script locally because of permissions]
{code}
# kerberos login for the Jenkins server
userpass=nboldt:PASSWORD
stream_jbt=master # or 4.4.neon
stream_ds=master # or 10.0.neon
for j in jbosstools-build.parent_${stream_jbt} jbosstoolstargetplatforms-matrix jbosstools-buildflow_${stream_jbt} jbosstools-composite-install_${stream_jbt} jbosstools-browsersim-standalone_${stream_jbt} jbosstools-build-sites.aggregate.site_${stream_jbt} jbosstools-build-sites.aggregate.coretests-site_${stream_jbt} jbosstools-centraltarget_${stream_jbt} jbosstools-build-sites.aggregate.child-sites_${stream_jbt} devstudio.product_${stream_ds} devstudio.versionwatch_${stream_ds} jbosstools-install-p2director.install-tests.matrix_${stream_jbt} jbosstools-install-grinder.install-tests.matrix_${stream_jbt}; do
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/disable && echo -n ".D"
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/lastBuild/toggleLogKeep && echo -n ".K"
done
echo ""
{code}
1b. Using the buildflow, Jenkins job or by hand:
* Build Discovery Sites
{code}
# kerberos login for the Jenkins server
userpass=nboldt:PASSWORD
versionWithRespin_jbt=4.4.1.AM3 # a, b, c... (not SNAPSHOT!)
stream_jbt=master # or 4.4.neon
stream_ds=master # or 10.0.neon
TARGET_PLATFORM_VERSION_MAX=4.60.1.AM3-SNAPSHOT
TARGET_PLATFORM_CENTRAL_MAX=4.60.1.AM3-SNAPSHOT
for j in jbosstools-discovery_${stream_jbt}; do
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/enable && echo -n ".E"
curl -k -u ${userpass} --data "VERSION=${versionWithRespin_jbt##*.}&TARGET_PLATFORM_VERSION_MAXIMUM=${TARGET_PLATFORM_VERSION_MAX}&JBTCENTRALTARGET_VERSION=${TARGET_PLATFORM_CENTRAL_MAX}" https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/buildWithParameters && echo -n ".B"
sleep 15s
# then disable the job
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/disable && echo -n ".D"
curl -k -X POST -u ${userpass} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/${j}/lastBuild/toggleLogKeep && echo -n ".K"
done
{code}
2. {code:title=https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-push-to-staging-02-copy-builds-and-update-sites_master/}
// Copy & rename builds & update sites from "snapshots" to "staging"
{code}
Still To do:
{code}
// 3. Verify sites are correctly populated using curl | grep to check for contents / 404s; fail if anything missing
// 4. TODO: generate PR for Update http://download.jboss.org/jbosstools/neon/staging/updates/
// 5. merge in IS content
// 6. TODO: generate PR for Release the latest staging site to ide-config.properties
// 7. generate notification emails
{code}
8. By hand:
* re-enable jobs [may have to be done by hand because of permissions]
* disable the buildflow and push-to-staging jobs [may have to be done by hand because of permissions]
> wrap staging build process with a jenkins job
> ---------------------------------------------
>
> Key: JBIDE-22819
> URL: https://issues.jboss.org/browse/JBIDE-22819
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build
> Affects Versions: 4.4.1.AM2
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Fix For: 4.4.1.AM3
>
>
> Job requires about 13 params:
> {code}
> version (JBT and JBDS)
> versionWithRespin (JBT and JBDS)
> versionWithRespin_PREV (JBT and JBDS)
> target platforms (min, max, central)
> respin # (- or a, b, c)
> devsuite installerExe url
> stream_JBT=master # or 4.4.neon
> stream_DS=master # or 10.0.neon
> {code}
> See https://github.com/jbdevstudio/jbdevstudio-devdoc/tree/master/release_guide/10 for the steps to convert into a job
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list