Linux-Debug 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. pipeline {
  2. agent {
  3. dockerfile { filename 'Jenkinsfiles/ubuntu-16.04.dockerfile' }
  4. }
  5. stages {
  6. stage('Build') {
  7. steps {
  8. sh '''
  9. make -j 8 DEBUG=1 WERROR=1
  10. make -j 8 DEBUG=1 WERROR=1 test
  11. '''
  12. }
  13. }
  14. stage('Test') {
  15. steps {
  16. sh '''
  17. cd Pal/regression
  18. make regression
  19. '''
  20. sh '''
  21. cd LibOS/shim/test/regression
  22. make regression
  23. '''
  24. sh '''
  25. cd LibOS/shim/test/apps/ltp
  26. make
  27. ./syscalls.sh
  28. '''
  29. timeout(time: 5, unit: 'MINUTES') {
  30. sh '''
  31. cd LibOS/shim/test/apps/python
  32. make regression
  33. '''
  34. }
  35. sh '''
  36. cd LibOS/shim/test/apps/bash
  37. make regression
  38. '''
  39. timeout(time: 5, unit: 'MINUTES') {
  40. sh '''
  41. cd LibOS/shim/test/apps/gcc
  42. make regression
  43. '''
  44. }
  45. timeout(time: 20, unit: 'MINUTES') {
  46. sh '''
  47. cd LibOS/shim/test/apps/lmbench
  48. make regression N_RUNS=1 ENOUGH=100
  49. '''
  50. }
  51. sh '''
  52. cd LibOS/shim/test/apps/lighttpd
  53. make
  54. make start-graphene-server &
  55. sleep 1
  56. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8000
  57. '''
  58. sh '''
  59. cd LibOS/shim/test/apps/apache
  60. make
  61. make start-graphene-server &
  62. sleep 1
  63. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
  64. '''
  65. }
  66. post {
  67. always {
  68. junit 'Pal/regression/pal-regression.xml'
  69. junit 'LibOS/shim/test/regression/libos-regression.xml'
  70. }
  71. }
  72. }
  73. stage('Deploy') {
  74. steps {
  75. sh 'echo Deploying code'
  76. }
  77. }
  78. }
  79. post {
  80. success {
  81. echo 'Deployment successful'
  82. }
  83. failure {
  84. echo 'Failure while on the pipeline'
  85. }
  86. unstable {
  87. echo 'Pipeline marked as "unstable"'
  88. }
  89. }
  90. }