New Plugins
Justin Ryan edited this page Aug 12, 2014
·
11 revisions
"Ensure" will take care of most of the details. But here are the manual steps:
- Create GitHub repository, aka <name-of-project>, via https://github.com/organizations/nebula-plugins/repositories/new. Request from mailing list.
- lazybones create nebula-plugin <name-of-project>
- cd <name-of-project>
- git init
- git remote add origin git@github.com:nebula-plugins/<name-of-project>.git
- git add -A
- git add -f gradle/wrapper/gradle-wrapper.jar
- git commit -m "Initial template"
- git push --set-upstream origin master
- Run https://netflixoss.ci.cloudbees.com/job/nebula-plugins/job/Ensure-repos/
- SEED job should make the appropriate jobs, ensure that it ran correctly: https://netflixoss.ci.cloudbees.com/job/nebula-plugins/job/SEED-nebula-plugins/
- You should see <name-of-project>-snapshots, <name-of-project>-pull-requests, <name-of-project>-release as jobs in https://netflixoss.ci.cloudbees.com/job/nebula-plugins/
- From https://bintray.com/nebula/gradle-plugins/<name-of-project>, Click "Add to JCenter". Click "Host my snapshots..." and fill in group id as com.netflix.nebula, click Send. This can take a day to process.
- Create GitHub repo under nebula-plugins, aka REPO
- Add hook via Settings->"WebHook URLs" and configure it with https://netflixoss.ci.cloudbees.com/github-webhook/, click Update Settings
- Create a REPO-contrib team for repo, from https://github.com/orgs/nebula-plugins/teams, select Write Acces then click Create team
- Add REPO repo to the REPO-contrib
- Add REPO to general contrib team, https://github.com/orgs/nebula-plugins/teams/contrib
- Locally, git clone git@github.com:nebula-plugins/gradle-nothing-plugin.git gradle-MYPLUGIN-plugin
- cd gradle-MYPLUGIN-plugin
- rm -fr .git
- git init
- git remote add origin git@github.com:nebula-plugins/gradle-MYPLUGIN-plugin.git
- Change files
- Wipe out CHANGELOG.md
- Change README.md
- Reset version in gradle.properties
- Edit build.gradle, update dependencies, description, etc
- Edit settings.gradle
- Rename src/main/resources/META-INF/gradle-plugins/nebula-project.properties
- git push origin master
- Create Bintray module
- From https://bintray.com/nebula/gradle-plugins, click Add Package, name it
- Set name, description, license (to Apache-2.0), tags (gradle, plugin, nebula), website (https://github.com/nebula-plugins/REPO), issues (https://github.com/nebula-plugins/REPO/issues), version control (https://github.com/nebula-plugins/REPO), and make download stats public.
- On next page, fill in Github repo, nebula-plugins/REPO, save changes
- On next page, fill in GitHub release notes file, CHANGELOG.md, save changes
- From https://bintray.com/nebula/gradle-plugins/REPO, Click "Add to JCenter". Click "Host my snapshots..." and fill in group id as com.netflix.nebula, click Send. This will take a day to process.
- Setup Cloudbees
- SEED job should make the appropriate jobs, ensure that it ran correctly: https://netflixoss.ci.cloudbees.com/job/nebula-plugins/job/SEED-nebula-plugins/
- You should see REPO-snapshots, REPO-pull-requests, REPO-release as jobs in https://netflixoss.ci.cloudbees.com/job/nebula-plugins/
- Do a
git push
to ensure push changes are picked up, job should queue immediately.