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

Release to SIT #1152

Merged
merged 12 commits into from
Apr 26, 2023

Merge pull request #1147 from Crown-Commercial-Service/bugfix/CAS-107…

9f9a94a
Select commit
Loading
Failed to load commit list.
Merged

Release to SIT #1152

Merge pull request #1147 from Crown-Commercial-Service/bugfix/CAS-107…
9f9a94a
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Travis CI / Travis CI - Branch succeeded Apr 21, 2023 in 6m 35s

Build Passed

The build passed, just like the previous build.

Details

This is a normal build for the develop branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build only has a single job.
You can use jobs to test against multiple versions of your runtime or dependencies, or to speed up your build.

Build Configuration

Build Option Setting
Language Java
Operating System Linux (Xenial)
JDK Version openjdk17
Build Configuration
{
  "language": "java",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "jdk": [
    "openjdk17"
  ],
  "script": [
    "wget https://archive.apache.org/dist/maven/maven-3/3.8.5/binaries/apache-maven-3.8.5-bin.tar.gz -P /tmp",
    "sudo tar xf /tmp/apache-maven-*.tar.gz -C /usr/local/bin/",
    "export M2_HOME=/usr/local/bin/apache-maven-3.8.5",
    "export PATH=${M2_HOME}/bin:${PATH}",
    "mvn package"
  ],
  "cache": {
    "directories": [
      "$HOME/.m2"
    ]
  },
  "branches": {
    "only": [
      "/^(feature|bugfix)\\/(SCC|SCAT|CON|CAS)-[0-9]+.*$/",
      "/^(release)\\/.*$/",
      "/^snyk-(upgrade|fix)-[a-z0-9]+$/",
      "/^(sbx3feature)\\/.*$/",
      "develop",
      "main"
    ]
  },
  "before_install": [
    "sudo rm -Rf terraform_\"$TF_VERSION\"_linux_amd64.zip",
    "sudo rm -Rf terraform",
    "wget https://releases.hashicorp.com/terraform/\"$TF_VERSION\"/terraform_\"$TF_VERSION\"_linux_amd64.zip",
    "unzip terraform_\"$TF_VERSION\"_linux_amd64.zip",
    "sudo mv terraform /usr/local/bin/",
    "rm terraform_\"$TF_VERSION\"_linux_amd64.zip"
  ],
  "deploy": [
    {
      "provider": "script",
      "skip_cleanup": true,
      "script": "CF_ENVIRONMENT=sbx2 bash ./deploy.sh",
      "on": {
        "all_branches": true,
        "condition": [
          "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} =~ ^(feature|bugfix)\\/(SCC|SCAT|CON|CAS)-[0-9]+.*$ || ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} =~ ^snyk-(upgrade|fix)-[a-z0-9]+$"
        ]
      }
    },
    {
      "provider": "script",
      "skip_cleanup": true,
      "script": "CF_ENVIRONMENT=sbx3 bash ./deploy.sh",
      "on": {
        "all_branches": true,
        "condition": [
          "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} =~ ^(sbx3feature)\\/.*$"
        ]
      }
    },
    {
      "provider": "script",
      "skip_cleanup": true,
      "script": "CF_ENVIRONMENT=sbx4 bash ./deploy.sh",
      "on": {
        "branch": [
          "release/sbx4"
        ]
      }
    },
    {
      "provider": "script",
      "skip_cleanup": true,
      "script": "CF_ENVIRONMENT=dev bash ./deploy.sh",
      "on": {
        "branch": [
          "develop"
        ]
      }
    },
    {
      "provider": "script",
      "skip_cleanup": true,
      "script": "CF_ENVIRONMENT=int bash ./deploy.sh",
      "on": {
        "branch": [
          "release/int"
        ]
      }
    },
    {
      "provider": "script",
      "skip_cleanup": true,
      "script": "CF_ENVIRONMENT=nft bash ./deploy.sh",
      "on": {
        "branch": [
          "release/nft"
        ]
      }
    },
    {
      "provider": "script",
      "skip_cleanup": true,
      "script": "CF_ENVIRONMENT=uat bash ./deploy.sh",
      "on": {
        "branch": [
          "release/uat"
        ]
      }
    },
    {
      "provider": "script",
      "skip_cleanup": true,
      "script": "CF_ENVIRONMENT=pre bash ./deploy.sh",
      "on": {
        "branch": [
          "release/pre"
        ]
      }
    },
    {
      "provider": "script",
      "skip_cleanup": true,
      "script": "CF_ENVIRONMENT=prd bash ./deploy.sh",
      "on": {
        "branch": [
          "release/prd"
        ]
      }
    }
  ],
  "env": [
    "global=AWS_ACCESS_KEY_ID=[secure]=AWS_SECRET_ACCESS_KEY=[secure]=S3_STATE_BUCKET_NAME=[secure]=DDB_LOCK_TABLE_NAME=[secure]=CF_USERNAME=[secure]=CF_PASSWORD=[secure]={:TF_VERSION=>\"1.0.5\"}"
  ]
}