Rename build/new-jenkins/frontend/ to js/

Fixes: CCI-120

Test plan: New Jenkins JS build passes

Change-Id: I772e1a2d2a30d62cfcb875d1c6c08e2177f9f311
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/218959
Tested-by: Jenkins
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: S. Jacob Powell <spowell@instructure.com>
Reviewed-by: Rex Fleischer <rfleischer@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
This commit is contained in:
Robert Lamb 2019-11-27 14:22:59 -07:00
parent c157752aec
commit 75054ff4f5
7 changed files with 16 additions and 19 deletions

View File

@ -28,16 +28,6 @@ def setDockerUp () {
} }
} }
def cleanupDocker () {
withEnv(['COMPOSE_FILE=docker-compose.new-jenkins-web.yml:docker-compose.new-jenkins-karma.yml']) {
// Make sure to clean up the karma containers and image
sh 'docker-compose rm -fs karma'
sh 'docker rmi frontend_karma'
// Clean up all the other stuff
sh 'build/new-jenkins/docker-cleanup.sh'
}
}
def isMerge () { def isMerge () {
return env.GERRIT_EVENT_TYPE == 'change-merged' return env.GERRIT_EVENT_TYPE == 'change-merged'
} }
@ -56,6 +46,13 @@ pipeline {
PATCHSET_TAG = "$DOCKER_REGISTRY_FQDN/jenkins/canvas-lms:$NAME" PATCHSET_TAG = "$DOCKER_REGISTRY_FQDN/jenkins/canvas-lms:$NAME"
} }
stages { stages {
// remove this after it runs for a little bit.
stage('temp-cleanup') {
steps {
sh 'build/new-jenkins/docker-cleanup.sh'
}
}
stage('Setup') { stage('Setup') {
steps { steps {
setDockerUp() setDockerUp()
@ -77,12 +74,12 @@ pipeline {
parallel { parallel {
stage('Jest') { stage('Jest') {
steps { steps {
sh 'build/new-jenkins/frontend/tests-jest.sh' sh 'build/new-jenkins/js/tests-jest.sh'
} }
} }
stage('Packages') { stage('Packages') {
steps { steps {
sh 'build/new-jenkins/frontend/tests-packages.sh' sh 'build/new-jenkins/js/tests-packages.sh'
} }
} }
stage('Karma - Spec Group - coffee') { stage('Karma - Spec Group - coffee') {
@ -90,7 +87,7 @@ pipeline {
JSPEC_GROUP = 'coffee' JSPEC_GROUP = 'coffee'
} }
steps { steps {
sh 'build/new-jenkins/frontend/tests-karma.sh' sh 'build/new-jenkins/js/tests-karma.sh'
} }
} }
stage('Karma - Spec Group - jsa - A-F') { stage('Karma - Spec Group - jsa - A-F') {
@ -98,7 +95,7 @@ pipeline {
JSPEC_GROUP = 'jsa' JSPEC_GROUP = 'jsa'
} }
steps { steps {
sh 'build/new-jenkins/frontend/tests-karma.sh' sh 'build/new-jenkins/js/tests-karma.sh'
} }
} }
stage('Karma - Spec Group - jsg - G') { stage('Karma - Spec Group - jsg - G') {
@ -106,7 +103,7 @@ pipeline {
JSPEC_GROUP = 'jsg' JSPEC_GROUP = 'jsg'
} }
steps { steps {
sh 'build/new-jenkins/frontend/tests-karma.sh' sh 'build/new-jenkins/js/tests-karma.sh'
} }
} }
stage('Karma - Spec Group - jsh - H-Z') { stage('Karma - Spec Group - jsh - H-Z') {
@ -114,7 +111,7 @@ pipeline {
JSPEC_GROUP = 'jsh' JSPEC_GROUP = 'jsh'
} }
steps { steps {
sh 'build/new-jenkins/frontend/tests-karma.sh' sh 'build/new-jenkins/js/tests-karma.sh'
} }
} }
} }
@ -122,7 +119,7 @@ pipeline {
} }
post { post {
cleanup { cleanup {
cleanupDocker() sh 'build/new-jenkins/docker-cleanup.sh'
} }
} }
} }

View File

@ -10,7 +10,7 @@ docker-compose stop && docker-compose down --volumes --remove-orphans --rmi all
# remove all containers # remove all containers
docker rm --force --volumes $(docker ps --all --quiet) || true docker rm --force --volumes $(docker ps --all --quiet) || true
# delete all containers # delete all images
docker rmi -f $(docker images --all --quiet) || true docker rmi -f $(docker images --all --quiet) || true
# remove any extra networks (errors saying unable to remove is ok) # remove any extra networks (errors saying unable to remove is ok)

View File

@ -5,6 +5,6 @@ services:
- JSPEC_GROUP - JSPEC_GROUP
build: build:
context: . context: .
dockerfile: ./build/new-jenkins/frontend/Dockerfile-karma dockerfile: ./build/new-jenkins/js/Dockerfile-karma
args: args:
image_name: $PATCHSET_TAG image_name: $PATCHSET_TAG