Skip to content

start deploying el9 branch results to dockerhub

953ae2b
Select commit
Loading
Failed to load commit list.
Closed

El9 #94

start deploying el9 branch results to dockerhub
953ae2b
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request required action Feb 18, 2026 in 7m 20s

Build Errored

The build errored. This is a change from the previous build, which passed.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #94 El9.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has five jobs, running in three sequential stages.

Stage 1: BUILD_AND_TEST

This stage passed.

Job Python ENV OS State
2878.1 Build and Test opendap/hyrax 3.12 AWS_ACCESS_KEY_ID=[secure] Linux passed

Stage 2: BUILD

This stage errored.

Job Python ENV OS State
2878.2 Build opendap/besd 3.12 AWS_ACCESS_KEY_ID=[secure] Linux errored
2878.3 Build opendap/olfs 3.12 AWS_ACCESS_KEY_ID=[secure] Linux errored
2878.4 Build opendap/hyrax:ngap with reddis session manager 3.12 AWS_ACCESS_KEY_ID=[secure] Linux errored

Stage 3: TEST_DEPLOYED_IMAGE

This stage canceled.

Job Python ENV OS State
2878.5 Test Deployed Image 3.12 AWS_ACCESS_KEY_ID=[secure] Linux canceled

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Jammy)
Python Version 3.12
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "jammy",
  "python": [
    "3.12"
  ],
  "services": [
    "docker"
  ],
  "branches": {
    "only": [
      "master",
      "el9"
    ]
  },
  "notifications": {
    "email": [
      {
        "recipients": [
          "ndp@opendap.org"
        ]
      },
      {
        "recipients": [
          "jgallagher@opendap.org"
        ]
      }
    ]
  },
  "addons": {
    "apt": {
      "packages": [
        "gnupg",
        "jq"
      ]
    }
  },
  "env": [
    "global=AWS_ACCESS_KEY_ID=[secure]=AWS_SECRET_ACCESS_KEY=[secure]=DOCKER_HUB_UID=[secure]=DOCKER_HUB_PSWD=[secure]={:BUILD_RECIPE=>\"\\\"el9-build-recipe\\\"\"}={:TARGET_OS=>\"$( grep \\\"TARGET_OS\\\" \\\"$BUILD_RECIPE\\\" | awk '{print $2;}' )\"}={:RELEASE_DATE=>\"\\\"$(date +%s)\\\"\"}={:S3_BUILD_BUCKET=>\"\\\"opendap.travis.build\\\"\"}={:ADD_DEBUG_RPMS=>\"\\\"\\\"\"}"
  ],
  "before_install": [
    "python3 --version",
    "pip3 install awscli",
    "echo \"# travis.before_install() - TRAVIS_PULL_REQUEST is $TRAVIS_PULL_REQUEST\"",
    "echo \"# travis.before_install() -       TRAVIS_BRANCH is $TRAVIS_BRANCH\"",
    "if test \"$TRAVIS_PULL_REQUEST\" = \"false\" -o \"$TRAVIS_BRANCH\" = \"el9\" ; then export DEPLOY_ME=\"true\"; else export DEPLOY_ME=\"false\"; fi",
    "echo \"# travis.before_install() -           DEPLOY_ME is $DEPLOY_ME\""
  ],
  "install": [
    "echo \"print env:\"",
    "printenv",
    "echo $DOCKER_HUB_PSWD | docker login -u $DOCKER_HUB_UID --password-stdin"
  ],
  "stages": [
    {
      "name": "OLFS",
      "if": "branch = master"
    },
    {
      "name": "BUILD_AND_TEST",
      "if": "branch = master"
    },
    {
      "name": "BUILD",
      "if": "branch = master"
    },
    {
      "name": "TEST_DEPLOYED_IMAGE",
      "if": "branch = master"
    },
    {
      "name": "disabled",
      "if": "branch = disabled"
    }
  ],
  "jobs": {
    "include": [
      {
        "stage": "BUILD_AND_TEST",
        "name": "Build and Test opendap/hyrax",
        "script": [
          "export DOCKER_NAME=\"hyrax\"",
          "echo \"DOCKER_NAME '$DOCKER_NAME'\"",
          "echo \"RELEASE_DATE '$RELEASE_DATE'\"",
          "echo \"BUILDING FOR $TARGET_OS\"",
          "cd \"$TARGET_OS-builds\"",
          "source \"./build-$TARGET_OS\"",
          "show_version",
          "echo \"USING TOMCAT MAJOR VERSION '$TOMCAT_MAJOR_VERSION'\"",
          "export TESTS_LOG_BASE=\"$DOCKER_NAME-regression-tests-$TRAVIS_JOB_NUMBER\"",
          "export TOMCAT_VERSION=$(get_latest_tomcat_version_number \"$TOMCAT_MAJOR_VERSION\")",
          "show_version",
          "get_tomcat_distro \"$DOCKER_NAME\" \"$TOMCAT_VERSION\"",
          "s3_get_besd_distro \"$S3_BUILD_BUCKET\" \"$DOCKER_NAME\" \"$TARGET_OS\" \"$LIBDAP_VERSION\" \"$BES_VERSION\" $ADD_DEBUG 2>&1",
          "s3_get_olfs_distro \"$S3_BUILD_BUCKET\" \"$DOCKER_NAME\" \"$OLFS_VERSION\" 2>&1",
          "docker build --build-arg TOMCAT_VERSION --build-arg RELEASE_DATE --build-arg HYRAX_VERSION --build-arg LIBDAP_VERSION --build-arg BES_VERSION --build-arg OLFS_VERSION --tag \"$SNAPSHOT_IMAGE_TAG\" --tag \"$BUILD_VERSION_TAG\" \"$DOCKER_NAME\"",
          "docker image ls -a",
          "cd ..",
          "echo \"Running Test Script\"",
          "./travis/regression_test_script -i \"$SNAPSHOT_IMAGE_TAG\" -l \"$TESTS_LOG_BASE\""
        ]
      },
      {
        "stage": "BUILD",
        "name": "Build opendap/besd",
        "script": [
          "export DOCKER_NAME=\"besd\"",
          "echo \"RELEASE_DATE '$RELEASE_DATE'\"",
          "cd \"$TARGET_OS-builds\"",
          "source \"./build-$TARGET_OS\"",
          "show_version",
          "s3_get_besd_distro \"$S3_BUILD_BUCKET\" \"$DOCKER_NAME\" \"$TARGET_OS\" \"$LIBDAP_VERSION\" \"$BES_VERSION\" \"$ADD_DEBUG_RPMS\" 2>&1",
          "docker build --build-arg RELEASE_DATE --build-arg HYRAX_VERSION --build-arg LIBDAP_VERSION --build-arg BES_VERSION --tag \"$SNAPSHOT_IMAGE_TAG\" --tag \"$BUILD_VERSION_TAG\" \"$DOCKER_NAME\"",
          "docker image ls -a"
        ]
      },
      {
        "stage": "disabled",
        "name": "Build opendap/hyrax_ncwms",
        "script": [
          "export DOCKER_NAME=\"hyrax_ncwms\"",
          "export DOCKER_DIR=\"hyrax\"",
          "cd \"$TARGET_OS-builds\"",
          "source \"./build-$TARGET_OS\"",
          "export TOMCAT_VERSION=$(get_latest_tomcat_version_number \"$TOMCAT_MAJOR_VERSION\")",
          "show_version",
          "get_tomcat_distro \"$DOCKER_DIR\" \"$TOMCAT_VERSION\"",
          "s3_get_besd_distro \"$S3_BUILD_BUCKET\" \"$DOCKER_DIR\" \"$TARGET_OS\" \"$LIBDAP_VERSION\" \"$BES_VERSION\" \"$ADD_DEBUG_RPMS\" 2>&1",
          "ls -l \"$DOCKER_DIR/*.rpm\"",
          "s3_get_olfs_distro \"$S3_BUILD_BUCKET\" \"$DOCKER_DIR\" \"$OLFS_VERSION\" 2>&1",
          "ls -l \"$DOCKER_DIR/*.tar.gz\"",
          "docker build --build-arg TOMCAT_VERSION --build-arg RELEASE_DATE --build-arg HYRAX_VERSION --build-arg LIBDAP_VERSION --build-arg BES_VERSION --build-arg OLFS_VERSION --build-arg USE_NCWMS=true --tag \"$SNAPSHOT_IMAGE_TAG\" --tag \"$BUILD_VERSION_TAG\" \"$DOCKER_DIR\"",
          "docker image ls -a"
        ]
      },
      {
        "stage": "disabled",
        "name": "Build opendap/hyrax:ngap",
        "script": [
          "cd \"$TARGET_OS-builds\"",
          "export DOCKER_NAME=\"ngap\"",
          "export DOCKER_DIR=\"$DOCKER_NAME\"",
          "source \"./build-$TARGET_OS\"",
          "echo \"##### SNAPSHOT_IMAGE_TAG - $SNAPSHOT_IMAGE_TAG (post source build script)\" >&2",
          "echo \"##### BUILD_VERSION_TAG - $BUILD_VERSION_TAG (post source build script)\" >&2",
          "export SNAPSHOT_IMAGE_TAG=\"opendap/hyrax:$DOCKER_NAME-snapshot-$TARGET_OS$TEST_DEPLOYMENT\"",
          "echo \"##### SNAPSHOT_IMAGE_TAG - $SNAPSHOT_IMAGE_TAG (After Travis set/export)\" >&2",
          "export BUILD_VERSION_TAG=\"opendap/hyrax:$DOCKER_NAME-$HYRAX_VERSION-$TARGET_OS$TEST_DEPLOYMENT\"",
          "echo \"##### BUILD_VERSION_TAG - $BUILD_VERSION_TAG(After Travis set/export)\" >&2",
          "export TOMCAT_VERSION=$(get_latest_tomcat_version_number \"$TOMCAT_MAJOR_VERSION\")",
          "show_version",
          "echo \"##### SNAPSHOT_IMAGE_TAG - $SNAPSHOT_IMAGE_TAG (post show_version())\" >&2",
          "echo \"##### BUILD_VERSION_TAG - $BUILD_VERSION_TAG (post show_version())\" >&2",
          "get_tomcat_distro \"$DOCKER_DIR\" \"$TOMCAT_VERSION\"",
          "s3_get_besd_distro \"$S3_BUILD_BUCKET\" \"$DOCKER_DIR\" \"$TARGET_OS\" \"$LIBDAP_VERSION\" \"$BES_VERSION\" \"$ADD_DEBUG_RPMS\" 2>&1",
          "get_ngap_olfs_distro \"$S3_BUILD_BUCKET\" \"$DOCKER_DIR\" \"$OLFS_VERSION\" 2>&1",
          "docker build --build-arg TOMCAT_VERSION --build-arg RELEASE_DATE --build-arg HYRAX_VERSION --build-arg LIBDAP_VERSION --build-arg BES_VERSION --build-arg OLFS_VERSION --tag \"$SNAPSHOT_IMAGE_TAG\" --tag \"$BUILD_VERSION_TAG\" \"$DOCKER_DIR\"",
          "docker image ls -a"
        ]
      },
      {
        "stage": "disabled",
        "name": "Build opendap/olfs:snapshot",
        "script": [
          "cd \"${TARGET_OS}-builds\"",
          "export DOCKER_NAME=\"olfs\"",
          "source ./build-rh8",
          "export SNAPSHOT_IMAGE_TAG=\"opendap/${DOCKER_NAME}:snapshot$TEST_DEPLOYMENT\"",
          "export BUILD_VERSION_TAG=\"opendap/${DOCKER_NAME}:${OLFS_VERSION}$TEST_DEPLOYMENT\"",
          "export TOMCAT_VERSION=$(get_latest_tomcat_version_number \"${TOMCAT_MAJOR_VERSION}\")",
          "show_version",
          "get_tomcat_distro \"${DOCKER_NAME}\" \"${TOMCAT_VERSION}\"",
          "s3_get_olfs_distro \"${S3_BUILD_BUCKET}\" \"olfs\" \"${OLFS_VERSION}\" 2>&1",
          "docker build --build-arg TOMCAT_VERSION --build-arg RELEASE_DATE --build-arg HYRAX_VERSION --build-arg OLFS_VERSION --tag \"${SNAPSHOT_IMAGE_TAG}\" --tag \"${BUILD_VERSION_TAG}\" olfs",
          "docker image ls -a"
        ]
      },
      {
        "stage": "BUILD",
        "name": "Build opendap/olfs",
        "script": [
          "export DOCKER_NAME=\"olfs\"",
          "export DOCKER_DIR=\"olfs\"",
          "cd \"$TARGET_OS-builds\"",
          "source \"./build-$TARGET_OS\"",
          "export TOMCAT_VERSION=$(get_latest_tomcat_version_number \"${TOMCAT_MAJOR_VERSION}\")",
          "show_version",
          "get_tomcat_distro \"${DOCKER_NAME}\" \"${TOMCAT_VERSION}\"",
          "s3_get_olfs_distro \"${S3_BUILD_BUCKET}\" \"olfs\" \"${OLFS_VERSION}\" 2>&1",
          "docker build --build-arg TOMCAT_VERSION --build-arg RELEASE_DATE --build-arg HYRAX_VERSION --build-arg OLFS_VERSION --tag \"${SNAPSHOT_IMAGE_TAG}\" --tag \"${BUILD_VERSION_TAG}\" olfs",
          "docker image ls -a"
        ]
      },
      {
        "stage": "BUILD",
        "name": "Build opendap/hyrax:ngap with reddis session manager",
        "script": [
          "cd \"$TARGET_OS-builds\"",
          "export DOCKER_NAME=\"ngap\"",
          "export DOCKER_DIR=\"ngap\"",
          "export TEST_DEPLOYMENT=\"-test-deploy\"",
          "./build-redis-ngap.sh",
          "docker image ls -a"
        ]
      },
      {
        "stage": "TEST_DEPLOYED_IMAGE",
        "name": "Test Deployed Image",
        "script": [
          "cd \"$TARGET_OS-builds\"",
          "source \"./build-$TARGET_OS\"",
          "cd ..",
          "echo \"Running Hyrax Regression Test Script on $SNAPSHOT_IMAGE_TAG\"",
          "./travis/regression_test_script -i \"$SNAPSHOT_IMAGE_TAG\" -l \"deployed-image-regression-tests-$TRAVIS_JOB_NUMBER\"",
          "export DEPLOY_ME=\"false\""
        ]
      }
    ]
  },
  "after_script": [
    "./travis/upload-test-results.sh \"$DOCKER_NAME\" \"$TESTS_LOG_BASE.tgz\""
  ],
  "before_deploy": [
    "export DOCKER_LOGIN=`aws ecr get-login --region us-east-1 | sed \"s/-e none //g\"`;",
    "$DOCKER_LOGIN;",
    "echo \"# DEPLOY_ME is $DEPLOY_ME\""
  ],
  "deploy": [
    {
      "provider": "script",
      "script": "bash \"$TRAVIS_BUILD_DIR/travis/deploy_to_docker_hub.sh\"",
      "on": {
        "branch": [
          "master"
        ],
        "condition": [
          "$DEPLOY_ME = \"true\""
        ]
      }
    },
    {
      "provider": "script",
      "script": "bash \"$TRAVIS_BUILD_DIR/travis/deploy_to_docker_hub.sh\"",
      "on": {
        "branch": [
          "el9"
        ],
        "condition": [
          "$DEPLOY_ME = \"true\""
        ]
      }
    }
  ]
}