-
Notifications
You must be signed in to change notification settings - Fork 23
Merge private changes branch #207
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 all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e88313c
DEV-29238 Close idle connections after 4 seconds (#91)
nschile abba413
Merge remote-tracking branch 'public/master' into nbehrens/merge-publ…
nbehrens-bz 38c2419
update version for private fork
nbehrens-bz 1f63ef6
Merge pull request #93 from Backblaze/nbehrens/merge-public-back-to-p…
nbehrens-bz 2bcd7b5
Configure to deploy to Artifactory and cleanup GitHub Actions configs
DenWav 897f028
Merge pull request #94 from Backblaze/kyle/artifactory
rhryckewicz 07f41dd
Configure github actions to allow releasing from a feature branch (#95)
vsridharan-bz faea172
Push to artifactory and other package updates
rhryckewicz 3b23f51
Add new BAL capabilities to the private SDK (#106)
nbehrens-bz 3654664
Set maven build to be published with a URL from parameters (#107)
nbehrens-bz cf923e2
update public version to snapshot
nbehrens-bz 01279fa
Update ci_cd.yml to use ubuntu-latest runner in public branch
nbehrens-bz 77f9efa
Add quotes around runner values in ci_cd yml
nbehrens-bz 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 was deleted.
Oops, something went wrong.
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,104 @@ | ||
| # Copyright 2022, Backblaze Inc. All Rights Reserved. | ||
| # License https://www.backblaze.com/using_b2_code.html | ||
|
|
||
| name: b2-sdk-java ci/cd | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| - api-v2 | ||
| - 7.x # TODO: This is temporary and will be removed once we merge this branch to master branch | ||
|
|
||
| env: | ||
| OUTPUT_DIR: $GITHUB_WORKSPACE/build/outputs | ||
| OUTPUT_ZIP: b2-sdk-build-${GITHUB_RUN_NUMBER}.zip | ||
| BUILD_NUMBER: ${{ github.run_number }} | ||
| # These are stored in Bitwarden | ||
| B2_ACCOUNT_ID: ${{ secrets.B2_ACCOUNT_ID }} | ||
| B2_UPLOAD_BUCKET: ${{ secrets.B2_UPLOAD_BUCKET }} | ||
| B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }} | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ${{ github.repository == 'Backblaze/b2-sdk-java-private' && 'self-hosted'|| 'ubuntu-latest' }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '11' | ||
|
|
||
| - uses: gradle/actions/wrapper-validation@v4 | ||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@v4 | ||
|
|
||
| - name: Set up Python | ||
| run: | | ||
| python3.8 -m venv env | ||
| source env/bin/activate | ||
| echo "VIRTUAL ENV:" $VIRTUAL_ENV | ||
| # upgrade pip and setuptools so that b2 CLI can be properly installed | ||
| pip install --upgrade pip setuptools | ||
| pip install b2 pysqlite3 | ||
|
|
||
| - name: Build the distribution | ||
| run: | | ||
| $GITHUB_WORKSPACE/gradlew build | ||
| # | ||
| # Prepare the outputs | ||
| # | ||
|
|
||
| # make the directory | ||
| mkdir -p ${{ env.OUTPUT_DIR }} | ||
| cp -v */build/libs/b2-sdk-*.{jar,pom,module} ${{ env.OUTPUT_DIR }} | ||
|
|
||
| # zip up the outputs | ||
| cd ${{ env.OUTPUT_DIR }} | ||
| zip -r $GITHUB_WORKSPACE/build/${{ env.OUTPUT_ZIP }} * | ||
|
|
||
| - name: Deploy to internal Maven repo | ||
| if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/api-v2' || github.ref == 'refs/heads/7.x') && github.repository == 'Backblaze/b2-sdk-java-private' | ||
| run: $GITHUB_WORKSPACE/gradlew publishMavenPublicationToRemoteRepository | ||
| env: | ||
| ORG_GRADLE_PROJECT_remoteUsername: ${{ secrets.ARTIFACTORY_USERNAME }} | ||
| ORG_GRADLE_PROJECT_remotePassword: ${{ secrets.ARTIFACTORY_TOKEN }} | ||
| ORG_GRADLE_PROJECT_publishingUrl: "${{ secrets.JF }}/maven-private/" | ||
|
|
||
| - name: Deploy to GH packages | ||
| if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/api-v2' || github.ref == 'refs/heads/7.x') && github.repository == 'Backblaze/b2-sdk-java-private' | ||
| run: $GITHUB_WORKSPACE/gradlew publishMavenPublicationToRemoteRepository | ||
| env: | ||
| ORG_GRADLE_PROJECT_remoteUsername: ${{ secrets.PACKAGES_USERNAME }} | ||
| ORG_GRADLE_PROJECT_remotePassword: ${{ secrets.PACKAGES_TOKEN }} | ||
| ORG_GRADLE_PROJECT_publishingUrl: "https://maven.pkg.github.com/Backblaze/repo" | ||
|
|
||
| - name: Upload to b2 | ||
| if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/api-v2' || github.ref == 'refs/heads/7.x' | ||
| # upload to b2 (if credentials are provided, as they will be for backblaze's builds, but not pull requests) | ||
| # This should be using python 3.8 | ||
| run: | | ||
| source $GITHUB_WORKSPACE/env/bin/activate | ||
| $GITHUB_WORKSPACE/maybe_upload_build_results ${{ env.OUTPUT_ZIP }} | ||
|
|
||
| - name: Check GitHub Pages status | ||
| if: github.ref == 'refs/heads/master' | ||
| uses: crazy-max/ghaction-github-status@v4 | ||
| with: | ||
| pages_threshold: major_outage | ||
|
|
||
| - name: Deploy Javadoc | ||
| # note that i'm only uploading the javadocs for b2-sdk-core. | ||
| # that's because i'm lame and building separate javadocs for | ||
| # each jar and only uploading one set of javadocs. | ||
| if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/api-v2' || github.ref == 'refs/heads/7.x') && success() | ||
| uses: crazy-max/ghaction-github-pages@v3 | ||
| with: | ||
| target_branch: gh-pages | ||
| build_dir: core/build/docs/javadoc | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this make the minimum Java version 11 for anyone depending on this library?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is just changing the minimum java version on the worker that runs the ci_cd build.