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' - ) -}