Skip to content

Commit

Permalink
test(wip): run only the oss alpine build #revertme
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Jul 28, 2022
1 parent 677833e commit 17444f5
Showing 1 changed file with 0 additions and 141 deletions.
141 changes: 0 additions & 141 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,108 +16,6 @@ pipeline {
retry(2)
}
stages {
stage('Enteprise Test Builds') {
environment {
DOCKER_REPOSITORY = "kong/kong-build-tools-private"
GITHUB_TOKEN = credentials('github_bot_access_token')
KONG_SOURCE = "master"
PULP = credentials('PULP')
PULP_PASSWORD = "${env.PULP_PSW}"
PULP_USERNAME = "${env.PULP_USR}"
}
when {
beforeAgent true
anyOf {
buildingTag()
branch 'master'
changeRequest target: 'master'
}
}
parallel {
stage('Kong Enterprise RPM'){
agent {
node {
label 'bionic'
}
}
environment {
GITHUB_SSH_KEY = credentials('github_bot_ssh_key')
PATH = "/home/ubuntu/bin/:${env.PATH}"
PACKAGE_TYPE = "rpm"
}
steps {
sh 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true'
sh 'while /bin/bash -c "ps aux | grep [a]pt-get"; do sleep 5; done'
sh 'curl https://raw.githubusercontent.com/Kong/kong/master/scripts/setup-ci.sh | bash'
sh 'git clone --recursive --single-branch --branch ${KONG_SOURCE} https://github.com/Kong/kong-ee.git ${KONG_SOURCE_LOCATION}'
sh 'make RESTY_IMAGE_BASE=amazonlinux RESTY_IMAGE_TAG=2 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=centos RESTY_IMAGE_TAG=7 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=7.9 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=8.6 package-kong test cleanup'
}
}
stage('Kong Enterprise src & Alpine'){
agent {
node {
label 'bionic'
}
}
environment {
PATH = "/home/ubuntu/bin/:${env.PATH}"
GITHUB_SSH_KEY = credentials('github_bot_ssh_key')
}
steps {
sh 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true'
sh 'while /bin/bash -c "ps aux | grep [a]pt-get"; do sleep 5; done'
sh 'curl https://raw.githubusercontent.com/Kong/kong/master/scripts/setup-ci.sh | bash'
sh 'git clone --recursive --single-branch --branch ${KONG_SOURCE} git@github.com:Kong/kong-ee.git ${KONG_SOURCE_LOCATION}'
sh 'make RESTY_IMAGE_BASE=src RESTY_IMAGE_TAG=src PACKAGE_TYPE=src package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=alpine RESTY_IMAGE_TAG=3.10 PACKAGE_TYPE=apk CACHE=false UPDATE_CACHE=true DOCKER_MACHINE_ARM64_NAME="jenkins-kong-"`cat /proc/sys/kernel/random/uuid` package-kong test cleanup'
}
}
stage('Kong Enterprise DEB') {
agent {
node {
label 'bionic'
}
}
environment {
PACKAGE_TYPE = "deb"
PATH = "/home/ubuntu/bin/:${env.PATH}"
GITHUB_SSH_KEY = credentials('github_bot_ssh_key')
}
steps {
sh 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true'
sh 'while /bin/bash -c "ps aux | grep [a]pt-get"; do sleep 5; done'
sh 'curl https://raw.githubusercontent.com/Kong/kong/master/scripts/setup-ci.sh | bash'
sh 'git clone --recursive --single-branch --branch ${KONG_SOURCE} git@github.com:Kong/kong-ee.git ${KONG_SOURCE_LOCATION}'
sh 'make RESTY_IMAGE_BASE=debian RESTY_IMAGE_TAG=10 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=debian RESTY_IMAGE_TAG=11 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=18.04 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=20.04 package-kong test cleanup'
}
}
stage('Kong Enterprise BoringSSL') {
agent {
node {
label 'bionic'
}
}
environment {
PATH = "/home/ubuntu/bin/:${env.PATH}"
GITHUB_SSH_KEY = credentials('github_bot_ssh_key')
DOCKER_REPOSITORY = "kong/kong-build-tools-private"
}
steps {
sh 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true'
sh 'while /bin/bash -c "ps aux | grep [a]pt-get"; do sleep 5; done'
sh 'curl https://raw.githubusercontent.com/Kong/kong/master/scripts/setup-ci.sh | bash'
sh 'git clone --recursive --single-branch --branch ${KONG_SOURCE} git@github.com:Kong/kong-ee.git ${KONG_SOURCE_LOCATION}'
sh 'make CACHE=false PACKAGE_TYPE=deb RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=20.04 SSL_PROVIDER=boringssl package-kong test cleanup'
}
}
}
}
stage('OSS Test Builds') {
when {
beforeAgent true
Expand All @@ -128,25 +26,6 @@ pipeline {
}
}
parallel {
stage('Kong OSS RPM'){
agent {
node {
label 'bionic'
}
}
environment {
PATH = "/home/ubuntu/bin/:${env.PATH}"
PACKAGE_TYPE = "rpm"
}
steps {
sh 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true'
sh 'git clone --single-branch --branch ${KONG_SOURCE} https://github.com/Kong/kong.git ${KONG_SOURCE_LOCATION}'
sh 'make RESTY_IMAGE_BASE=amazonlinux RESTY_IMAGE_TAG=2 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=centos RESTY_IMAGE_TAG=7 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=7.9 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=8.6 package-kong test cleanup'
}
}
stage('Kong OSS src & Alpine'){
agent {
node {
Expand All @@ -163,26 +42,6 @@ pipeline {
sh 'make RESTY_IMAGE_BASE=alpine RESTY_IMAGE_TAG=3 PACKAGE_TYPE=apk CACHE=false UPDATE_CACHE=true DOCKER_MACHINE_ARM64_NAME="jenkins-kong-"`cat /proc/sys/kernel/random/uuid` package-kong test cleanup'
}
}
stage('Kong OSS DEB') {
agent {
node {
label 'bionic'
}
}
environment {
PACKAGE_TYPE = "deb"
PATH = "/home/ubuntu/bin/:${env.PATH}"
}
steps {
sh 'mkdir -p /home/ubuntu/bin/'
sh 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true'
sh 'git clone --single-branch --branch ${KONG_SOURCE} https://github.com/Kong/kong.git ${KONG_SOURCE_LOCATION}'
sh 'make RESTY_IMAGE_BASE=debian RESTY_IMAGE_TAG=10 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=debian RESTY_IMAGE_TAG=11 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=18.04 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=20.04 package-kong test cleanup'
}
}
}
}
}
Expand Down

0 comments on commit 17444f5

Please sign in to comment.