Linux-Debug-18.04 4.5 KB

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