You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
888 B

  1. node {
  2. def cmakeTool
  3. stage('Preparation') {
  4. // Get some code from a GitHub repository
  5. checkout scm
  6. cmakeTool = tool name: 'InSearchPath', type: 'hudson.plugins.cmake.CmakeTool'
  7. sh "rm -rf build"
  8. sh "mkdir -p build"
  9. }
  10. stage('Configure') {
  11. dir("build") {
  12. sh "${cmakeTool} .."
  13. }
  14. }
  15. stage('Build') {
  16. dir("build") {
  17. sh "make -j 4 storm"
  18. }
  19. }
  20. stage('Build Tests') {
  21. dir("build") {
  22. sh "make -j 4 tests"
  23. }
  24. }
  25. stage('Test') {
  26. dir("build")
  27. sh "make check"
  28. }
  29. stage('Archive') {
  30. archiveArtifacts artifacts: 'build/bin/*', onlyIfSuccessful: true
  31. archiveArtifacts artifacts: 'build/lib/*', onlyIfSuccessful: true
  32. archiveArtifacts artifacts: 'build/include/*', onlyIfSuccessful: true
  33. }
  34. }