Linux 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 WERROR=1
  10. '''
  11. }
  12. }
  13. stage('Test') {
  14. steps {
  15. sh '''
  16. cd Pal/regression
  17. make regression
  18. '''
  19. sh '''
  20. cd LibOS/shim/test/regression
  21. make regression
  22. '''
  23. sh '''
  24. cd LibOS/shim/test/apps/ltp
  25. git submodule update --init src
  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: 15, 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 `hostname -I|tr -d '[:space:]'`: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 `hostname -I|tr -d '[:space:]'`: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. }