Skip to content

Commit

Permalink
ci: run test on Windows (elastic#15570)
Browse files Browse the repository at this point in the history
* feat: run test on Windows

* chore: parameter to enable/disable windows test

* deleteDir before of the checkout

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Update Jenkinsfile

* Apply suggestions from code review

* feat: apply dependency hierarchies

* fit: use isChanged for all matches, and add the libbeat match where it is needed

* feat: add x-pack/winlogbeat windows unit tests

* fix: duplicate when condition

* Update Jenkinsfile

Co-Authored-By: Andrew Kroh <andrew.kroh@elastic.co>

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
  • Loading branch information
2 people authored and kvch committed Feb 20, 2020
1 parent 982e73d commit 50b6c49
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ pipeline {
mageTargetWin("Auditbeat Windows Unit test", "-d auditbeat goUnitTest")
//mageTargetWin("Auditbeat Windows Integration test", "-d auditbeat goIntegTest")
}
<<<<<<< HEAD
=======
}
}
}
Expand All @@ -190,6 +192,20 @@ pipeline {
beforeAgent true
expression {
return env.BUILD_AUDITBEAT_XPACK != "false"
>>>>>>> ci: run test on Windows (#15570)
}
}
steps {
makeTarget("Auditbeat x-pack Linux", "-C x-pack/auditbeat testsuite")
}
}
stage('Auditbeat x-pack'){
agent { label 'ubuntu && immutable' }
options { skipDefaultCheckout() }
when {
beforeAgent true
expression {
return env.BUILD_AUDITBEAT_XPACK != "false"
}
}
steps {
Expand Down Expand Up @@ -526,16 +542,13 @@ pipeline {
}
}

def makeTarget(context, target, clean = true){
def makeTarget(context, target){
withGithubNotify(context: "${context}") {
withBeatsEnv(){
sh(label: "Make ${target}", script: """
eval "\$(gvm use ${GO_VERSION} --format=bash)"
make ${target}
""")
if(clean) {
sh(script: 'script/fix_permissions.sh ${HOME}')
}
}
}
}
Expand Down

0 comments on commit 50b6c49

Please sign in to comment.