Skip to content

Commit

Permalink
Adjust CI configuration (#16216)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
kvch authored Feb 12, 2020
1 parent 0a9637f commit 4c53445
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand All @@ -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")
}
}
}
Expand All @@ -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")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/jenkins_ci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion generator/_templates/beat/Makefile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ../common/Makefile
include ../../common/Makefile
2 changes: 1 addition & 1 deletion generator/_templates/metricbeat/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BEAT_TYPE = metricbeat

include ../common/Makefile
include ../../common/Makefile

# Collects all dependencies and then calls update
.PHONY: collect
Expand Down

0 comments on commit 4c53445

Please sign in to comment.