You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatic continous deployment of develop branch to a (new) update site #123
In order to "keep the lights on" for this project (see #124), one thing we should sort out is to get a p2 site to which we automatically continously deploy to. The last thing I have time for, for this project, is to do any sort of manual work for testing, or play Git Flow and merge a develop to master branch, to "cut releases" with "releases notes" and what not.
The simplest thing that works is to just have automatic continous deployment deployment of the develop branch to a update site. If someone merges a commit that break things or even installation - then that's just too bad, someone better revert that fast, or commit a fix.
If I remember correctly, I couldn't get that to work for a gh-pages branch, like this project currently uses... so for both this and "historical" reasons, IMHO it's best to start with a new URL for a new p2 repo, instead of the existing p2 site on http://m2e-code-quality.github.io/m2e-code-quality/site (as per http://m2e-code-quality.github.io/m2e-code-quality/). This will have the added advantage that we will not break anyone pulling from that old site and relying on FindBugs support - because that will break and it will be SpotBugs only here going forward, with #113 ...
changed the title [-]Automatic continous deployment deployment of develop branch to a (new) update site[/-][+]Automatic continous deployment of develop branch to a (new) update site[/+]on Sep 14, 2018
BUT I forgot 😸 how the hell that github_token: $GITHUB_TOKEN business works, I cannot find anymore how/where to "Set in travis-ci.org dashboard" (inline comment). Will have to read up on that - some other day.
Also, importantly, the Travis build must now do install instead of just test, because com.basistech.m2e.code.quality.site doesn't build (its target/site/ is empty) if you only run up to test - so #131 changes that. This won't just affect the deploy, but Travis builds to verify all future PRs as well, but that doesn't matter.
but.. doing this would require a personal access token with write privilege to ALL OF MY repos. On Travis' Settings UI it's read only (stars), not visible, but somehow.. I'm still not entirely comfortable with this. E.g. if Travis' UI ever had a bug, other committers to to this project may be able to get that token.
I'm happy to share the password of this new m2e-code-quality-bot GitHub user account with any other active commiters on this project, please just contact me by email and I'll oblige.
Git Hub pages only works for a branch named master or gh-pages, not develop (this is about branches in m2e-code-quality-p2-site, not m2e-code-quality). As master could be confusing (because m2e-code-quality-p2-site contains what was built from m2e-code-quality's develop and not master branch), d69e100 switches that, and GitHub pages is now enabled from the gh-pages branch in the m2e-code-quality-p2-site repo.
That matrix build (for mars, neon & oxyen target platforms...) now deploys x3 to m2e-code-quality-p2-site, in arbitrary order. That is not great, as not predictable. I'm not sure how to make Travis do that deploy only for one of the matrix builds... anyone got a clue? In the mean time, to simplify, I've removed the matrix build - let's just build this on a single TP, see fb625eb.
GitHub Pages just seems to have been REALLY slow, but meanwhile our CD p2 site seems to be up on https://m2e-code-quality.github.io/m2e-code-quality-p2-site/... would anyone like to test it and confirm that it works, for manual installation from Eclipse, and re-open this issue if it's NOK?
for over 1/2h ... AFAIK it' usually much faster
I'll contact support@github.com to see if they can help
seems to have been REALLY slow, but meanwhile
FTR: GitHub Support manually triggered the first build, because, quote from support ticket:
It looks you had your bot user perform the initial push to the repository. As a security feature, we require that a GitHub Pages repository be initialized by a user that is the owner or an admin. Any future pushes to the repository will automatically trigger a rebuild.
I can't say I've tested anything other than installing, but at least can confirm things install without error going back as far as 4.3 (kepler). For kepler/luna/mars spotbugs does not install, presumably due to a newer dependency, but eclipse recognizes this and handles it gracefully.
Activity
vorburger commentedon Sep 14, 2018
see doc/release.md ...
vorburger commentedon Sep 14, 2018
https://github.com/m2e-code-quality/m2e-code-quality-p2-site
[-]Automatic continous deployment deployment of develop branch to a (new) update site[/-][+]Automatic continous deployment of develop branch to a (new) update site[/+]continous deployment of develop branch to a (new) update site (m2e-co…
vorburger commentedon Sep 14, 2018
#131 should be the equivalent for here...
BUT I forgot 😸 how the hell that
github_token: $GITHUB_TOKENbusiness works, I cannot find anymore how/where to "Set in travis-ci.org dashboard" (inline comment). Will have to read up on that - some other day.Also, importantly, the Travis build must now do
installinstead of justtest, becausecom.basistech.m2e.code.quality.sitedoesn't build (itstarget/site/is empty) if you only run up totest- so #131 changes that. This won't just affect the deploy, but Travis builds to verify all future PRs as well, but that doesn't matter.vorburger commentedon Sep 18, 2018
but.. doing this would require a personal access token with write privilege to ALL OF MY repos. On Travis' Settings UI it's read only (stars), not visible, but somehow.. I'm still not entirely comfortable with this. E.g. if Travis' UI ever had a bug, other committers to to this project may be able to get that token.
https://developer.github.com/v3/guides/managing-deploy-keys/#machine-users which explicitly suggests creating a dedicated new GitHub user account for such purposes, and that seems like a better solution; I'll do that instead.
continous deployment of develop branch to a (new) update site (#123)
vorburger commentedon Sep 18, 2018
https://github.com/m2e-code-quality-bot (michael.vorburger+m2e-code-quality-bot on Gmail)
I'm happy to share the password of this new m2e-code-quality-bot GitHub user account with any other active commiters on this project, please just contact me by email and I'll oblige.
This user also just became a Member (but not co-Owner) of the organization, and was made a Collaborator on the m2e-code-quality-p2-site repo (only).
She has a New personal access token of Scope repo (only), which I've just added as Environment Variable "GITHUB_TOKEN" to Travis settings for m2e-code-quality.
I've just merged #131 as 143f0a4 - let's see if this works...
use target-branch gh-pages not develop in Travis YAML (m2e-code-quali…
remove multi-TP matrix build from Travis (m2e-code-quality#123)
use target-branch gh-pages not develop in Travis YAML (#123)
remove multi-TP matrix build from Travis (#123)
vorburger commentedon Sep 18, 2018
just 2 problems:
Git Hub pages only works for a branch named master or gh-pages, not develop (this is about branches in m2e-code-quality-p2-site, not m2e-code-quality). As master could be confusing (because m2e-code-quality-p2-site contains what was built from m2e-code-quality's develop and not master branch), d69e100 switches that, and GitHub pages is now enabled from the gh-pages branch in the m2e-code-quality-p2-site repo.
That matrix build (for mars, neon & oxyen target platforms...) now deploys x3 to m2e-code-quality-p2-site, in arbitrary order. That is not great, as not predictable. I'm not sure how to make Travis do that deploy only for one of the matrix builds... anyone got a clue? In the mean time, to simplify, I've removed the matrix build - let's just build this on a single TP, see fb625eb.
vorburger commentedon Sep 18, 2018
Hm... the Settings have now been showing "Your GitHub Pages site is currently being built from the gh-pages branch." for over 1/2h ... AFAIK it' usually much faster. On http://m2e-code-quality.github.io/m2e-code-quality-p2-site/site.xml for https://github.com/m2e-code-quality-p2-site/ we still get a 404... (The 404 on / without site.xml would be normal, just because there is no index.html, and GitHub pages doesn't do directory listing; it will work in Eclipse.) I'll contact support@github.com to see if they can help.
BTW: Does anyone reading this remember more about p2 stuff than I do right now and knows why https://github.com/m2e-code-quality/m2e-code-quality-p2-site has site.xml & Co. but e.g. https://github.com/lastnpe/eclipse-external-annotations-m2e-plugin-p2-site has p2.index and content.xml.xz & Co. ? Do we need to bump the Tycho versions, or something like that? PRs more than welcome...
vorburger commentedon Sep 18, 2018
GitHub Pages just seems to have been REALLY slow, but meanwhile our CD p2 site seems to be up on https://m2e-code-quality.github.io/m2e-code-quality-p2-site/... would anyone like to test it and confirm that it works, for manual installation from Eclipse, and re-open this issue if it's NOK?
vorburger commentedon Sep 19, 2018
FTR: GitHub Support manually triggered the first build, because, quote from support ticket:
Change home page to point to new p2 repo, and drop individual names t…
pgalbraith commentedon Sep 19, 2018
I can't say I've tested anything other than installing, but at least can confirm things install without error going back as far as 4.3 (kepler). For kepler/luna/mars spotbugs does not install, presumably due to a newer dependency, but eclipse recognizes this and handles it gracefully.
Change home page to point to new p2 repo, and drop individual names t…
use new p2 update site for m2e-code-quality