Linux-Debug-18.04 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. pipeline {
  2. agent {
  3. dockerfile { filename 'Jenkinsfiles/ubuntu-18.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. make ltp.xml
  28. '''
  29. timeout(time: 5, unit: 'MINUTES') {
  30. sh '''
  31. cd LibOS/shim/test/apps/python-simple
  32. PYTHONVERSION=python3.6 make check
  33. '''
  34. }
  35. timeout(time: 5, unit: 'MINUTES') {
  36. sh '''
  37. cd LibOS/shim/test/apps/python-scipy-insecure
  38. PYTHONVERSION=python3.6 make check
  39. '''
  40. }
  41. sh '''
  42. cd LibOS/shim/test/apps/bash
  43. make regression
  44. '''
  45. timeout(time: 5, unit: 'MINUTES') {
  46. sh '''
  47. cd LibOS/shim/test/apps/curl
  48. make check
  49. '''
  50. }
  51. timeout(time: 5, unit: 'MINUTES') {
  52. sh '''
  53. cd LibOS/shim/test/apps/gcc
  54. make check
  55. '''
  56. }
  57. timeout(time: 20, unit: 'MINUTES') {
  58. sh '''
  59. cd LibOS/shim/test/apps/lmbench
  60. make regression N_RUNS=1 ENOUGH=100
  61. '''
  62. }
  63. sh '''
  64. cd LibOS/shim/test/apps/lighttpd
  65. make
  66. make start-graphene-server &
  67. sleep 1
  68. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8003
  69. '''
  70. sh '''
  71. cd LibOS/shim/test/apps/apache
  72. make
  73. make start-graphene-server &
  74. sleep 1
  75. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
  76. '''
  77. }
  78. post {
  79. always {
  80. archiveArtifacts 'LibOS/shim/test/apps/ltp/ltp.xml'
  81. junit 'Pal/regression/pal-regression.xml'
  82. junit 'LibOS/shim/test/regression/libos-regression.xml'
  83. junit 'LibOS/shim/test/apps/ltp/ltp.xml'
  84. }
  85. }
  86. }
  87. stage('Deploy') {
  88. steps {
  89. sh 'echo Deploying code'
  90. }
  91. }
  92. }
  93. post {
  94. success {
  95. echo 'Deployment successful'
  96. }
  97. failure {
  98. echo 'Failure while on the pipeline'
  99. }
  100. unstable {
  101. echo 'Pipeline marked as "unstable"'
  102. }
  103. }
  104. }