-
Notifications
You must be signed in to change notification settings - Fork 58
ADDR-139: Added support for Bamboo Specs. #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0ae88db
ADDR-139: Added support for Bamboo Specs.
Ruhanga 0571d45
ADDR-139: Fix random test failures on Amazon Corretto images
Ruhanga d292ae0
ADDR-139: Remove non Bamboo Specs specific logic.
Ruhanga 724fe35
ADDR-139: Added support for Java 24 to Bamboo Specs.
Ruhanga bbb302e
ADDR-139: Added support for Java 8 and 17 to Bamboo Specs.
Ruhanga 90e998c
ADDR-139: Disable forced clean builds and remove permissions resoluti…
Ruhanga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,257 @@ | ||
| --- | ||
| version: 2 | ||
| plan: | ||
| project-key: ADDRHIER | ||
| key: AHML | ||
| name: Address Hierarchy Module Latest | ||
| stages: | ||
| - Build and Test: | ||
| manual: false | ||
| final: false | ||
| jobs: | ||
| - Build and Test JDK 21 | ||
|
Ruhanga marked this conversation as resolved.
|
||
| - Build and Test JDK 11 | ||
| - Deploy: | ||
| manual: false | ||
| final: false | ||
| jobs: | ||
| - Deploy to Maven | ||
| - Release: | ||
| manual: true | ||
| final: false | ||
| jobs: | ||
| - Release to maven | ||
| Build and Test JDK 21: | ||
| key: JOB1 | ||
| tasks: | ||
| - script: | ||
| interpreter: SHELL | ||
| scripts: | ||
| - |- | ||
| #!/bin/bash -eu | ||
|
|
||
| set -x | ||
|
|
||
| export IMAGE=${bamboo.build.docker.image.id} | ||
|
|
||
| docker pull ${IMAGE} | ||
|
|
||
| docker run -v m2-repo:/root/.m2/repository -v ${PWD}:/module --rm -w="/module" ${IMAGE} bash -c 'chmod -R 777 .' | ||
| description: Resolve file permissions | ||
| - checkout: | ||
| force-clean-build: 'true' | ||
| description: Checkout default repository | ||
| - script: | ||
| interpreter: SHELL | ||
| scripts: | ||
| - |- | ||
| #!/bin/bash -eu | ||
|
|
||
| set -x | ||
|
|
||
| export IMAGE="maven:3.9.9-amazoncorretto-21" | ||
|
|
||
| docker pull ${IMAGE} | ||
|
|
||
| docker run -v m2-repo:/root/.m2/repository -v ${PWD}:/module --rm -w="/module" ${IMAGE} bash -c 'mvn clean package && chmod -R 777 .' | ||
| description: Build and test | ||
| artifact-subscriptions: [] | ||
| Build and Test JDK 11: | ||
| key: BTJ11 | ||
| tasks: | ||
| - script: | ||
| interpreter: SHELL | ||
| scripts: | ||
| - |- | ||
| #!/bin/bash -eu | ||
|
|
||
| set -x | ||
|
|
||
| export IMAGE=${bamboo.build.docker.image.id} | ||
|
|
||
| docker pull ${IMAGE} | ||
|
|
||
| docker run -v m2-repo:/root/.m2/repository -v ${PWD}:/module --rm -w="/module" ${IMAGE} bash -c 'chmod -R 777 .' | ||
| description: Resolve file permissions | ||
| - checkout: | ||
| force-clean-build: 'true' | ||
| description: Checkout default repository | ||
| - script: | ||
| interpreter: SHELL | ||
| scripts: | ||
| - |- | ||
| #!/bin/bash -eu | ||
|
|
||
| set -x | ||
|
|
||
| export IMAGE="maven:3.9.9-amazoncorretto-11" | ||
|
|
||
| docker pull ${IMAGE} | ||
|
|
||
| docker run -v m2-repo:/root/.m2/repository -v ${PWD}:/module --rm -w="/module" ${IMAGE} bash -c 'mvn clean package && chmod -R 777 .' | ||
| description: Build and test | ||
| artifact-subscriptions: [] | ||
| Deploy to Maven: | ||
| key: DTM | ||
| tasks: | ||
| - script: | ||
| interpreter: SHELL | ||
| scripts: | ||
| - |- | ||
| #!/bin/bash -eu | ||
|
|
||
| set -x | ||
|
|
||
| export IMAGE=${bamboo.build.docker.image.id} | ||
|
|
||
| docker pull ${IMAGE} | ||
|
|
||
| docker run -v m2-repo:/root/.m2/repository -v ${PWD}:/module --rm -w="/module" ${IMAGE} bash -c 'chmod -R 777 .' | ||
| description: Resolve file permissions | ||
| - checkout: | ||
| force-clean-build: 'true' | ||
| description: Checkout default repository | ||
| - script: | ||
| interpreter: SHELL | ||
| scripts: | ||
| - |- | ||
| #!/bin/bash -eu | ||
|
|
||
| set -x | ||
|
|
||
| export IMAGE=${bamboo.build.docker.image.id} | ||
|
|
||
| docker pull ${IMAGE} | ||
|
|
||
| docker run -v m2-repo:/root/.m2/repository -v ~/.m2/settings.xml:/.m2/settings.xml:ro -v ${PWD}:/module --rm -w="/module" ${IMAGE} bash -c 'mvn deploy -DskipTests --settings /.m2/settings.xml' | ||
| description: Deploy | ||
| artifact-subscriptions: [] | ||
| Release to maven: | ||
| key: RTM | ||
| tasks: | ||
| - script: | ||
| interpreter: SHELL | ||
| scripts: | ||
| - |- | ||
| #!/bin/bash -eu | ||
|
|
||
| set -x | ||
|
|
||
| export IMAGE=${bamboo.build.docker.image.id} | ||
|
|
||
| docker pull ${IMAGE} | ||
|
|
||
| docker run -v m2-repo:/root/.m2/repository -v ${PWD}:/module --rm -w="/module" ${IMAGE} bash -c 'chmod -R 777 .' | ||
| description: Temporarily resolve file permissions | ||
| - checkout: | ||
| force-clean-build: 'true' | ||
| description: Checkout default repository | ||
| - checkout: | ||
| repository: Release scripts | ||
| path: release-scripts | ||
| force-clean-build: 'true' | ||
| description: Checkout default repository | ||
| - script: | ||
| interpreter: SHELL | ||
| scripts: | ||
| - |- | ||
| #!/bin/bash -eu | ||
|
|
||
| set -x | ||
|
|
||
| export IMAGE=${bamboo.build.docker.image.id} | ||
|
|
||
| docker pull ${IMAGE} | ||
|
|
||
| docker run \ | ||
| -v m2-repo:/root/.m2/repository \ | ||
| -v ~/.m2/settings.xml:/root/.m2/settings.xml:ro \ | ||
| -v ${PWD}:/module \ | ||
| -v ~/.ssh/github:/root/.ssh:ro \ | ||
| -e GIT_USER_NAME=$GIT_USER_NAME \ | ||
| -e GIT_USER_EMAIL=$GIT_USER_EMAIL \ | ||
| -e GIT_SSH_COMMAND='ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \ | ||
| --rm \ | ||
| -w='/module' \ | ||
| ${IMAGE} \ | ||
| bash -c ' | ||
| yum -y install git && | ||
| yum clean all && | ||
| git config --global user.email "$GIT_USER_EMAIL" && | ||
| git config --global user.name "$GIT_USER_NAME" && | ||
| git config --global --add safe.directory /module && | ||
| ./release-scripts/release-prepare-perform.sh \ | ||
| -r ${bamboo.maven.release.version} \ | ||
| -d ${bamboo.maven.development.version} \ | ||
| -e ${bamboo.planRepository.repositoryUrl} | ||
| ' | ||
| environment: GIT_USER_NAME=${bamboo.git.user.name} GIT_USER_EMAIL=${bamboo.git.user.email} | ||
| description: Release prepare perform | ||
| - any-task: | ||
| plugin-key: com.atlassian.bamboo.plugins.variable.updater.variable-updater-generic:variable-extractor | ||
| configuration: | ||
| variable: maven.release.version | ||
| removeSnapshot: 'true' | ||
| variableScope: PLAN | ||
| description: Save next release version | ||
| - any-task: | ||
| plugin-key: com.atlassian.bamboo.plugins.variable.updater.variable-updater-generic:variable-extractor | ||
| configuration: | ||
| variable: maven.development.version | ||
| variableScope: JOB | ||
| description: Retrieve next snaphot version | ||
| artifact-subscriptions: [] | ||
| variables: | ||
| build.docker.image.id: maven:3.9.9-amazoncorretto-21 | ||
| maven.development.version: 3.1.0-SNAPSHOT | ||
| maven.release.version: 3.0.0 | ||
| repositories: | ||
| - Git: | ||
| type: git | ||
| url: https://github.com/openmrs/openmrs-module-addresshierarchy.git | ||
| branch: master | ||
| command-timeout-minutes: '180' | ||
| lfs: 'false' | ||
| verbose-logs: 'true' | ||
| use-shallow-clones: 'false' | ||
| cache-on-agents: 'false' | ||
| submodules: 'false' | ||
| ssh-key-applies-to-submodules: 'false' | ||
| fetch-all: 'false' | ||
| - Release scripts: | ||
| scope: global | ||
| triggers: | ||
| - polling: | ||
| period: '180' | ||
| repositories: | ||
| - Git | ||
| branches: | ||
| create: manually | ||
| delete: never | ||
| link-to-jira: true | ||
| notifications: | ||
| - events: | ||
| - job-failed | ||
| recipients: | ||
| - committers | ||
| - emails: | ||
| - dev-refapp@openmrs.org | ||
| labels: | ||
| - refapp | ||
| dependencies: | ||
| require-all-stages-passing: false | ||
| enabled-for-branches: true | ||
| block-strategy: none | ||
| plans: [] | ||
| other: | ||
| concurrent-build-plugin: system-default | ||
| --- | ||
| version: 2 | ||
| plan: | ||
| key: ADDRHIER-AHML | ||
| plan-permissions: | ||
| - roles: | ||
| - anonymous | ||
| permissions: | ||
| - view | ||
| ... | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.