From 4c5344557fe5ed8d20b782b7b38bb30fe13df42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Wed, 12 Feb 2020 12:10:20 +0100 Subject: [PATCH] Adjust CI configuration (#16216) ## What does this PR do? This PR adjust the path of the generators as these have been moved. ## Why is it important? It has to be adjusted, otherwise the CI jobs cannot start. --- .travis.yml | 8 ++++---- Jenkinsfile | 8 ++++---- dev-tools/jenkins_ci.ps1 | 2 +- generator/_templates/beat/Makefile | 2 +- generator/_templates/metricbeat/Makefile | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index dfe4a20bc5d..05f3f701f3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -149,20 +149,20 @@ jobs: # Generators - os: linux - env: TARGETS="-C generator/metricbeat test test-package" + env: TARGETS="-C generator/_templates/metricbeat test test-package" go: $TRAVIS_GO_VERSION stage: test - os: linux - env: TARGETS="-C generator/beat test test-package" + env: TARGETS="-C generator/_templates/beat test test-package" go: $TRAVIS_GO_VERSION stage: test - os: osx - env: TARGETS="-C generator/metricbeat test" + env: TARGETS="-C generator/_templates/metricbeat test" go: $TRAVIS_GO_VERSION stage: test - os: osx - env: TARGETS="-C generator/beat test" + env: TARGETS="-C generator/_templates/beat test" go: $TRAVIS_GO_VERSION stage: test diff --git a/Jenkinsfile b/Jenkinsfile index 3eb0d1ff7dd..ee1b4434b5a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -414,14 +414,14 @@ pipeline { stage('Generators Metricbeat Linux'){ steps { withBeatsEnv(){ - makeTarget("Generators Metricbeat Linux", "-C generator/metricbeat test test-package") + makeTarget("Generators Metricbeat Linux", "-C generator/_templates/metricbeat test test-package") } } } stage('Generators Beat Linux'){ steps { withBeatsEnv(){ - makeTarget("Generators Beat Linux", "-C generator/beat test test-package") + makeTarget("Generators Beat Linux", "-C generator/_templates/beat test test-package") } } } @@ -430,7 +430,7 @@ pipeline { options { skipDefaultCheckout() } steps { withBeatsEnv(){ - makeTarget("Generators Metricbeat Mac OS X", "-C generator/metricbeat test") + makeTarget("Generators Metricbeat Mac OS X", "-C generator/_templates/metricbeat test") } } } @@ -439,7 +439,7 @@ pipeline { options { skipDefaultCheckout() } steps { withBeatsEnv(){ - makeTarget("Generators Beat Mac OS X", "-C generator/beat test") + makeTarget("Generators Beat Mac OS X", "-C generator/_templates/beat test") } } } diff --git a/dev-tools/jenkins_ci.ps1 b/dev-tools/jenkins_ci.ps1 index f16a126b2af..f7f44cec39d 100755 --- a/dev-tools/jenkins_ci.ps1 +++ b/dev-tools/jenkins_ci.ps1 @@ -32,7 +32,7 @@ $env:TEST_COVERAGE = "true" $env:RACE_DETECTOR = "true" # Install mage from vendor. -exec { go install github.com/elastic/beats/vendor/github.com/magefile/mage } "mage install FAILURE" +exec { go install -mod=vendor github.com/magefile/mage } "mage install FAILURE" if (Test-Path "$env:beat\magefile.go") { cd "$env:beat" diff --git a/generator/_templates/beat/Makefile b/generator/_templates/beat/Makefile index dd1e5be8557..7c476dc5f6e 100644 --- a/generator/_templates/beat/Makefile +++ b/generator/_templates/beat/Makefile @@ -1 +1 @@ -include ../common/Makefile +include ../../common/Makefile diff --git a/generator/_templates/metricbeat/Makefile b/generator/_templates/metricbeat/Makefile index c773d75926c..d58cf4922bb 100644 --- a/generator/_templates/metricbeat/Makefile +++ b/generator/_templates/metricbeat/Makefile @@ -1,6 +1,6 @@ BEAT_TYPE = metricbeat -include ../common/Makefile +include ../../common/Makefile # Collects all dependencies and then calls update .PHONY: collect