Skip to content
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

Automate API check for updates #4869

Closed
wants to merge 1 commit into from

Conversation

KapilPowar
Copy link
Contributor

Automate API check for updates

Check if update is available in Artifactory for any JDK version and trigger sync job to update repository.

Automate API check for updates

Check if update is available in Artifactory for any JDK version
def CHILD_JOB_NAME="JCK_Sync"
def BUILD_URL="${JENKINS_URL}job/${CHILD_JOB_NAME}/"
def CHILD_PARAMS = []
def JCK_GIT_REPO = "[email protected]:runtimes/JCK${key}-unzipped.git"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script is also used by other vendors (e.g. Adoptium), not only ibm, so the link repo cannot be hardcoded. Suggest a root location be passed into the script (jenkins env var) and JCK_GIT_REPO be constructed.

#!/bin/bash

# File to store the previous state
PREVIOUS_STATE_FILE="/home/jenkins/previous_state.txt"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't assume that the system where this would be run will have a /home/jenkins folder. If appropriate, would the use of ${WORKSPACE} be better? Or maybe setting to the location of the script if the file is only intended for temporary use.

@KapilPowar KapilPowar closed this Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants