Linux-Debug-18.04 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/gcc
  48. make check
  49. '''
  50. }
  51. timeout(time: 20, unit: 'MINUTES') {
  52. sh '''
  53. cd LibOS/shim/test/apps/lmbench
  54. make regression N_RUNS=1 ENOUGH=100
  55. '''
  56. }
  57. sh '''
  58. cd LibOS/shim/test/apps/lighttpd
  59. make
  60. make start-graphene-server &
  61. sleep 1
  62. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8003
  63. '''
  64. sh '''
  65. cd LibOS/shim/test/apps/apache
  66. make
  67. make start-graphene-server &
  68. sleep 1
  69. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
  70. '''
  71. }
  72. post {
  73. always {
  74. archiveArtifacts 'LibOS/shim/test/apps/ltp/ltp.xml'
  75. junit 'Pal/regression/pal-regression.xml'
  76. junit 'LibOS/shim/test/regression/libos-regression.xml'
  77. junit 'LibOS/shim/test/apps/ltp/ltp.xml'
  78. }
  79. }
  80. }
  81. stage('Deploy') {
  82. steps {
  83. sh 'echo Deploying code'
  84. }
  85. }
  86. }
  87. post {
  88. success {
  89. echo 'Deployment successful'
  90. }
  91. failure {
  92. echo 'Failure while on the pipeline'
  93. }
  94. unstable {
  95. echo 'Pipeline marked as "unstable"'
  96. }
  97. }
  98. }