diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index afd1e0b..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,74 +0,0 @@ -version: 2.1 - -jobs: - build: - docker: - - image: mcr.microsoft.com/dotnet/sdk:7.0 - environment: - - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - steps: - - run: - name: Install unzip - command: | - apt-get update - apt-get install -y unzip - - run: - name: Install OpenSSH and Git - command: apt-get update && apt-get install -y openssh-client git - - checkout - - run: ./build.sh --target=restore - - run: ./build.sh --target=generate - - run: ./build.sh --target=build - - run: ./build.sh --target=test - - run-integration-tests-net7: - docker: - - image: mcr.microsoft.com/dotnet/sdk:7.0 - environment: - - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - steps: - - run: - name: Install unzip - command: | - apt-get update - apt-get install -y unzip - - run: - name: Install OpenSSH and Git - command: apt-get update && apt-get install -y openssh-client git - - checkout - - run: ./build.sh --target=restore - - run: ./build.sh --target=generate - - run: ./build.sh --target=build - # running each group of tests separately - #Events API - - run: ./build.sh --target=testNet7 --filter=Account - - run: ./build.sh --target=testNet7 --filter=Cart - - run: ./build.sh --target=testNet7 --filter=Chargebacks - - run: ./build.sh --target=testNet7 --filter=Contents - - run: ./build.sh --target=testNet7 --filter=LoginLogout - - run: ./build.sh --target=testNet7 --filter=Notifications - - run: ./build.sh --target=testNet7 --filter=Order - - run: ./build.sh --target=testNet7 --filter=Passwords - - run: ./build.sh --target=testNet7 --filter=Promotions - - run: ./build.sh --target=testNet7 --filter=Sessions - - run: ./build.sh --target=testNet7 --filter=Transactions - - run: ./build.sh --target=testNet7 --filter=Verifications - # Decisions API - - run: ./build.sh --target=testNet7 --filter=DecisionsRequests - # Labels API - - run: ./build.sh --target=testNet7 --filter=Labels - # PSP Merchants API - - run: ./build.sh --target=testNet7 --filter=MerchantRequests - # Score API - - run: ./build.sh --target=testNet7 --filter=Scores - # Verification API - - run: ./build.sh --target=testNet7 --filter=VerificationsRequests - -workflows: - build-and-test: - jobs: - - build - - run-integration-tests-net7: - filters: - branches: - only: master diff --git a/.jenkins/Jenkinsfile b/.jenkins/Jenkinsfile deleted file mode 100644 index 7aa3810..0000000 --- a/.jenkins/Jenkinsfile +++ /dev/null @@ -1,72 +0,0 @@ -// Load Jenkins shared library -jenkinsBranch = 'v0.39.0' -sharedLib = library("shared-lib@${jenkinsBranch}") - -def siftDotNetWorkflow = sharedLib.com.sift.ci.SiftDotNetWorkflow.new() -def ciUtil = sharedLib.com.sift.ci.CIUtil.new() -def stackdriver = sharedLib.com.sift.ci.StackDriverMetrics.new() - -// Default GitHub status context for automatically triggered builds -def defaultStatusContext = 'Jenkins:auto' - -// Pod template file for Jenkins agent pod -// Pod template yaml file is defined in https://github.com/SiftScience/jenkins/tree/master/resources/jenkins-k8s-pod-templates -def podTemplateFile = 'dot-net-7-pod-template.yaml' -def podLabel = "dot-net-${BUILD_TAG}" - -// GitHub repo name -def repoName = 'sift-dotnet' - -pipeline { - agent none - options { - timestamps() - skipDefaultCheckout() - disableConcurrentBuilds() - disableRestartFromStage() - parallelsAlwaysFailFast() - buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '30', numToKeepStr: '') - timeout(time: 20, unit: 'MINUTES') - } - environment { - GIT_BRANCH = "${env.CHANGE_BRANCH != null? env.CHANGE_BRANCH : env.BRANCH_NAME}" - DOTNET_CLI_TELEMETRY_OPTOUT = '1' - } - stages { - stage('Initialize') { - steps { - script { - statusContext = defaultStatusContext - // Get the commit sha for the build - commitSha = ciUtil.commitHashForBuild() - ciUtil.updateGithubCommitStatus(repoName, statusContext, 'Started', 'pending', commitSha) - } - } - } - stage ('Build and Test') { - steps { - script { - siftDotNetWorkflow.runSiftDotNetBuildAndTest(podTemplateFile, podLabel) - } - } - } - } - post { - success { - script { - ciUtil.updateGithubCommitStatus(repoName, statusContext, currentBuild.currentResult, 'success', commitSha) - } - } - unsuccessful { - script { - ciUtil.updateGithubCommitStatus(repoName, statusContext, currentBuild.currentResult, 'failure', commitSha) - ciUtil.notifySlack(repoName, commitSha) - } - } - always { - script { - stackdriver.updatePipelineStatistics(this) - } - } - } -}