Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rattermeyer/demo-cd-version
https://github.com/rattermeyer/demo-cd-version
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rattermeyer/demo-cd-version
- Owner: rattermeyer
- Created: 2016-02-19T06:40:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-19T07:16:23.000Z (almost 9 years ago)
- Last Synced: 2024-10-14T08:07:43.897Z (2 months ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository demoes several projects that are versioned in one git
repository. This setup is not so common with git that often takes the
aproach to have smaller repos, but would still be an option to ease
continuous integration.In this case, I would clone this repository to a specific location and
import the seperate projects independently in my IDE (IntelliJ or Eclipse)How to play with it
### Clone Repo from Github and create a local bare repository
git clone https://github.com/rattermeyer/demo-cd-version.git
mkdir demo-cd-version.git
cd demo-cd-version.git
git init --bare
cd ..
cd demo-cd-version
git remote rm origin
git remote add origin /path/to/demo-cd-version.git### Update your build Jobs
The build jobs are located under ci-simulator.
There are currently two jobs:* independent-utility
* multi-moduleEach job contains job.properties.
Edit the job properties and adjust `BUILD_NUMBER` and `GIT_URL`.
`GIT_URL` should point to your created local repo, e.g.
`GIT_URL=/path/to/demo-cd-version.git`and commit and push your repo
git commit -am "updated build jobs"
git push origin master### Install demo-parent
Inside the project:cd demo-parent
mvn install### Execute Builds
cd ci-simulator/independent-utility
./build.shThis might create and install a jar with a specific version. The Version has a format like
`1.1.6-086aac3`### Add the dependency to multi-module
Edit `multi-module/pom.xml`And change the version attribute in the dependency mgmt section to the new version.
de.rattermeyer.demo
independent-utility
1.1.3-b09255d
And commit and push your changes
git commit -am "updated dependencies"
git push origin master### Build the multi-module project
cd ci-simulator/multi-module
./build.sh### Update another-multi-module project
With the version created from the build run, you are now able to update another-multi-module.
This references the parent pom of multi-module as a bom.