diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile deleted file mode 100644 index fc2abd7..0000000 --- a/.ci/Jenkinsfile +++ /dev/null @@ -1,84 +0,0 @@ -#!/usr/bin/env groovy - -@Library('apm@current') _ - -pipeline { - agent { label 'ubuntu-20.04 && immutable' } - environment { - REPO = "elastic-agent-shipper-client" - BASE_DIR = "src/github.com/elastic/${env.REPO}" - JOB_GIT_CREDENTIALS = "f6c7695a-671e-4f4f-a331-acdce44ff9ba" - PIPELINE_LOG_LEVEL = 'INFO' - GO_VERSION = '1.17.9' - } - options { - timeout(time: 1, unit: 'HOURS') - buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20', daysToKeepStr: '30')) - timestamps() - ansiColor('xterm') - disableResume() - durabilityHint('PERFORMANCE_OPTIMIZED') - rateLimitBuilds(throttle: [count: 60, durationName: 'hour', userBoost: true]) - quietPeriod(10) - } - triggers { - issueCommentTrigger("${obltGitHubComments()}") - } - stages { - stage('Checkout') { - steps { - deleteDir() - gitCheckout(basedir: "${BASE_DIR}", githubNotifyFirstTimeContributor: true) - pipelineManager([ cancelPreviousRunningBuilds: [ when: 'PR' ] ]) - stash allowEmpty: true, name: 'source', useDefaultExcludes: false - } - } - stage('Update') { - options { skipDefaultCheckout() } - steps { - withMageEnv(){ - sh ''' - curl -sSfL -o protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip - unzip protoc.zip - ''' - dir("${BASE_DIR}"){ - sh(label: 'Generate GRPC code',script: 'mage -v update') - } - } - } - } - stage('Check') { - options { skipDefaultCheckout() } - steps { - withMageEnv(){ - dir("${BASE_DIR}"){ - sh(label: 'Checks formatting / linting',script: 'mage -v check') - } - } - } - } - stage('Test') { - steps { - withGithubNotify(context: "Test") { - deleteDir() - unstash 'source' - dir("${BASE_DIR}"){ - withGoEnv(){ - goTestJUnit(options: '-v ./...', output: 'junit-report.xml') - } - } - } - } - post { - always { - junit(allowEmptyResults: true, keepLongStdio: true, testResults: '**/junit-report.xml') - } - } - } - } - post { - cleanup { - notifyBuildResult(prComment: true) - } - } -} diff --git a/.ci/jobs/defaults.yml b/.ci/jobs/defaults.yml deleted file mode 100644 index a2bcaae..0000000 --- a/.ci/jobs/defaults.yml +++ /dev/null @@ -1,19 +0,0 @@ - ---- - -##### GLOBAL METADATA - -- meta: - cluster: fleet-ci - -##### JOB DEFAULTS - -- job: - logrotate: - numToKeep: 20 - node: linux - concurrent: true - publishers: - - email: - recipients: infra-root+build@elastic.co - prune-dead-branches: true diff --git a/.ci/jobs/elastic-agent-shipper-client-mbp.yml b/.ci/jobs/elastic-agent-shipper-client-mbp.yml deleted file mode 100644 index 572ca99..0000000 --- a/.ci/jobs/elastic-agent-shipper-client-mbp.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -- job: - name: "elastic-agent-shipper-client-mbp" - display-name: elastic-agent-shipper-client - description: elastic-agent-shipper-client - project-type: multibranch - script-path: .ci/Jenkinsfile - scm: - - github: - branch-discovery: no-pr - discover-pr-forks-strategy: merge-current - discover-pr-forks-trust: permission - discover-pr-origin: merge-current - discover-tags: true - notification-context: 'fleet-ci' - repo: elastic-agent-shipper-client - repo-owner: elastic - credentials-id: 2a9602aa-ab9f-4e52-baf3-b71ca88469c7-UserAndToken - ssh-checkout: - credentials: f6c7695a-671e-4f4f-a331-acdce44ff9ba - build-strategies: - - tags: - ignore-tags-older-than: -1 - ignore-tags-newer-than: -1 - - regular-branches: true - - change-request: - ignore-target-only-changes: true - clean: - after: true - before: true - prune: true - shallow-clone: true - depth: 4 - do-not-fetch-tags: true - submodule: - disable: false - recursive: true - parent-credentials: true - timeout: 100 - timeout: '15' - use-author: true - wipe-workspace: true