Uploaded image for project: 'IT: Release Engineering'
  1. IT: Release Engineering
  2. RELENG-4759

Global-JJB: Correct missing dollar for JIRA_URL variable

Issue XMLXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Low Low
    • None
    • None
    • Global JJB
    • None
    • ONAP

      Global-jjb script:

      jenkins-init-scripts/lf-env.sh

      ...has an error here:

      lf-git-validate-jira-urls () {
          echo "Checking for JIRA URLs in commit message..."
          # if JIRA_URL is not defined, nothing to do
          if [[ -v JIRA_URL ]]; then
              base_url=$(echo "$JIRA_URL" | awk -F'/' '{print $3}')

      Which should have a dollar before the variable name:

      lf-git-validate-jira-urls () {
          echo "Checking for JIRA URLs in commit message..."
          # if JIRA_URL is not defined, nothing to do
          if [[ -v $JIRA_URL ]]; then
              base_url=$(echo "$JIRA_URL" | awk -F'/' '{print $3}')

              modesevenindustrialsolutions Matthew Watkins
              modesevenindustrialsolutions Matthew Watkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: