Uploading to Nexus
To re-sign your game files, you need to upload your updated game files to Nexus.
Pre-requisite
Before completing these steps, ensure that you have set up your Nexus user account as outlined in Nexus Onboarding.
Manual Uploads
To manually upload files to Nexus:
- Navigate to either:
- Your Okta Dashboard and select the Nexus tile.
- The Big Fish Nexus Repository and select Login via SSO from the top-right.
- Select Upload on the left after navigating to the correct Nexus repository.
- Select the appropriate folder for your release.
- Select your file using the Browse button.
- Provide a new name for the file for when it's uploaded to Nexus.
- Enter the desired directory that the file will be stored in Nexus. Note: Do not include the filename in the directory.
- Provide any tags necessary. (Optional)
- Select Upload.
Automated Uploads
The following steps will guide you through automating your upload process to Nexus.
Getting Nexus Credentials
- Navigate to either:
- Your Okta Dashboard and select the Nexus tile
- The Big Fish Nexus Repository and select Login via SSO from the top-right
- Select the username from the top-right.
- Select User Token from the left.
- Select Access user token.
info
Take note of the token name code and user token passcode for future reference.
Uploading to Nexus
To assemble your cURL command to upload your files to Nexus you will want to the following format. Substitute the following:
${USER_TOKEN}
and${PASS_TOKEN}
are the two strings you took note of in Nexus.${LOCAL_FILENAME}
is the path to the file you want to upload from your disk.${REPO_NAME}
is the name of your repository inside Nexus. For example, for Android builds this would begame-name-android-client-builds
.${TARGET_FILENAME}
is the path to where the file should go inside the repository, including the filename in the repo.
curl -v -u ${USER_TOKEN}:${PASS_TOKEN} --upload-file ${LOCAL_FILENAME} https://nexus.bigfishgames.com/repository/${REPO_NAME}/${TARGET_FILENAME}
Continuous Integration & Continuous Deployment (CI/CD)
The automation team maintains an upload_to_nexus
script in the ci-utils repository on GitHub.