Linux-Debug-18.04 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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
  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 check
  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:8003
  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. archiveArtifacts 'LibOS/shim/test/apps/ltp/ltp.xml'
  69. junit 'Pal/regression/pal-regression.xml'
  70. junit 'LibOS/shim/test/regression/libos-regression.xml'
  71. junit 'LibOS/shim/test/apps/ltp/ltp.xml'
  72. }
  73. }
  74. }
  75. stage('Deploy') {
  76. steps {
  77. sh 'echo Deploying code'
  78. }
  79. }
  80. }
  81. post {
  82. success {
  83. echo 'Deployment successful'
  84. }
  85. failure {
  86. echo 'Failure while on the pipeline'
  87. }
  88. unstable {
  89. echo 'Pipeline marked as "unstable"'
  90. }
  91. }
  92. }