From 0a2c55a8524696dd3a08a9bea03160587d8d3421 Mon Sep 17 00:00:00 2001 From: Scott Aubrey Date: Tue, 5 Nov 2024 16:32:59 +0000 Subject: [PATCH] remove Jenkinsfile --- Jenkinsfile | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 31a3f1b1..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,43 +0,0 @@ -elifePipeline { - def commit - def image - elifeOnNode( - { - stage 'Checkout', { - checkout scm - commit = elifeGitRevision() - } - - stage 'Build image', { - sh "IMAGE_TAG=${commit} docker-compose -f docker-compose.yml build" - image = DockerImage.elifesciences(this, 'api-dummy', commit) - elifePullRequestOnly { prNumber -> - // push immediately to allow downstream exploration even with automated tests failing - image.tag("pr-${prNumber}").push() - } - } - - stage 'Project tests', { - try { - sh "IMAGE_TAG=${commit} docker-compose -f docker-compose.yml up -d" - sh "IMAGE_TAG=${commit} docker-compose -f docker-compose.yml exec -T app ./project_tests.sh" - sh "IMAGE_TAG=${commit} docker-compose -f docker-compose.yml exec -T app ./smoke_tests.sh" - } finally { - sh 'docker-compose -f docker-compose.yml down' - } - } - - elifeMainlineOnly { - stage 'Push image', { - image.push() - } - - stage 'Approval', { - elifeGitMoveToBranch commit, 'approved' - image.tag('approved').push() - } - } - }, - 'elife-libraries--ci' - ) -}