-
Notifications
You must be signed in to change notification settings - Fork 26
TASK-7809 - Upgrade avro version from 1.7.7 to 1.11.4 #125
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
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
8f4d7b9
pom: Upgrade avro version from 1.7.7 to 1.11.4 #TASK-7809 #TASK-7962
j-coll 353ca56
cicd: change hdp3.1 for hdi5.1 #TASK-7809
juanfeSanahuja 21194de
Merge branch 'develop' into TASK-7809
juanfeSanahuja da5fd53
Added prepare hadoop
juanfeSanahuja 852609b
Prepare Hadoop profile #TASK-7809
juanfeSanahuja a713a78
Prepare Hadoop profile #TASK-7809
juanfeSanahuja 46d1bed
cicd: Add param to control upload-artifact. #TASK-7809
j-coll 6539d73
Default value should be empty
juanfeSanahuja ca80e7c
Merge branch 'TASK-7809' of github.com:opencb/java-common-libs into T…
juanfeSanahuja 49d540e
Added Cache local Maven repository step #TASK-7809
juanfeSanahuja 34f6f28
cicd:Fix Input 'save-always' has been deprecated #TASK-7809
juanfeSanahuja 344d2b5
cicd: Add output cache-key #TASK-7809
j-coll 31100ad
cicd: Fix cache-key output. #TASK-7809
j-coll ebfc19c
cicd: Add missing output cache-key. #TASK-7809
j-coll ba1ec8f
cicd: Ensure correct cache-key is used. #TASK-7809
j-coll c4af62f
cicd: Improve cache-key name to include dependencies sha. #TASK-7809
j-coll 5fa4e89
cicd: Added Show which cache was used step for logs #TASK-7809
juanfeSanahuja dd7aedb
cicd: Added Show which cache was used step for logs #TASK-7809
juanfeSanahuja 4d0c3ed
Merge branch 'develop' into TASK-7809
j-coll e9a09d2
Added THIRDPARTY_READ_TOKEN #TASK-7809
juanfeSanahuja f8cb71b
Merge branch 'TASK-7809' of github.com:opencb/java-common-libs into T…
juanfeSanahuja 06cd494
cicd: Centralize "get_same_branch.sh" and "compile_same_branch.sh". #…
j-coll 7ea2746
Merge branch 'TASK-7809' of github.com:opencb/java-common-libs into T…
j-coll 52f3008
cicd: Use cache_key at maven-deploy. #TASK-7809
j-coll 588f805
cicd: Fix double to single quote. #TASK-7809
j-coll db0aa0e
cicd: Remove checkout filter. #TASK-7809
j-coll 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
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
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,23 @@ | ||
|
|
||
| WORKSPACE=${WORKSPACE:-/home/runner/work/} | ||
|
|
||
|
|
||
| function compile() { | ||
| local REPO=$1 | ||
| if [ ! -d "${WORKSPACE}/$REPO" ]; then | ||
| echo "Directory ${WORKSPACE}/$REPO does not exist. Skip compile" | ||
| return 0; | ||
| fi | ||
| echo "::group::Compiling '$REPO' project from branch $BRANCH_NAME" | ||
| cd "${WORKSPACE}/$REPO" || exit 2 | ||
| mvn clean install -DskipTests --no-transfer-progress | ||
| echo "::endgroup::" | ||
| } | ||
|
|
||
| ## Comma separated list of repos to compile | ||
| REPOS=$1 | ||
|
|
||
| IFS=',' read -ra REPO_ARRAY <<<"$REPOS" | ||
| for REPO in "${REPO_ARRAY[@]}"; do | ||
| compile "$REPO" | ||
| done |
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,40 @@ | ||
| #!/bin/bash | ||
|
|
||
| BRANCH_NAME=$1 | ||
| ## Comma separated list of repos to checkout | ||
| REPOS=$2 | ||
| DEPENDENCIES_SHA=${DEPENDENCIES_SHA:-""} | ||
| WORKSPACE=${WORKSPACE:-/home/runner/work/} | ||
|
|
||
| if [[ -z "$BRANCH_NAME" ]]; then | ||
| echo "The first parameter is mandatory and must be a valid branch name." | ||
| exit 1 | ||
| fi | ||
|
|
||
| function checkout(){ | ||
| local REPO=$1 | ||
| echo "::group::Installing '$REPO' project from branch $BRANCH_NAME" | ||
| cd "${WORKSPACE}" || exit 2 | ||
| git clone https://github.com/opencb/"$REPO".git -b "$BRANCH_NAME" | ||
| if [ -d "./$REPO" ]; then | ||
| cd "$REPO" || exit 2 | ||
| DEPENDENCIES_SHA=${DEPENDENCIES_SHA}:$(git rev-parse HEAD) | ||
| echo "Branch name $BRANCH_NAME already exists." | ||
| else | ||
| echo "Branch name $BRANCH_NAME does not exist in $REPO repository. Skipping installation." | ||
| fi | ||
| echo "::endgroup::" | ||
| } | ||
|
|
||
| IFS=',' read -ra REPO_ARRAY <<<"$REPOS" | ||
| for REPO in "${REPO_ARRAY[@]}"; do | ||
| checkout "$REPO" | ||
| done | ||
|
|
||
| ## Apply sha1 to DEPENDENCIES_SHA if contains `:` | ||
| if [[ "$DEPENDENCIES_SHA" == *":"* ]]; then | ||
| DEPENDENCIES_SHA=$(echo -n "$DEPENDENCIES_SHA" | sha1sum | awk '{print $1}') | ||
| fi | ||
|
|
||
| ## Export DEPENDENCIES_SHA as github output | ||
| echo "dependencies_sha=$DEPENDENCIES_SHA" >> "$GITHUB_OUTPUT" |
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
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
Oops, something went wrong.
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.