Linux 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. cd Pal/ipc/linux
  11. make
  12. '''
  13. }
  14. }
  15. stage('Test') {
  16. steps {
  17. sh '''
  18. cd Pal/regression
  19. make regression
  20. '''
  21. sh '''
  22. cd LibOS/shim/test/regression
  23. make regression
  24. '''
  25. sh '''
  26. cd LibOS/shim/test/apps/ltp
  27. git submodule update --init src
  28. make
  29. ./syscalls.sh
  30. '''
  31. timeout(time: 5, unit: 'MINUTES') {
  32. sh '''
  33. cd LibOS/shim/test/apps/python
  34. make regression
  35. '''
  36. }
  37. sh '''
  38. cd LibOS/shim/test/apps/bash
  39. make regression
  40. '''
  41. timeout(time: 5, unit: 'MINUTES') {
  42. sh '''
  43. cd LibOS/shim/test/apps/gcc
  44. make regression
  45. '''
  46. }
  47. timeout(time: 15, unit: 'MINUTES') {
  48. sh '''
  49. cd LibOS/shim/test/apps/lmbench
  50. make regression N_RUNS=1 ENOUGH=100
  51. '''
  52. }
  53. sh '''
  54. cd LibOS/shim/test/apps/lighttpd
  55. make
  56. make start-graphene-server &
  57. sleep 1
  58. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh `hostname -I|tr -d '[:space:]'`:8000
  59. '''
  60. sh '''
  61. cd LibOS/shim/test/apps/apache
  62. make
  63. make start-graphene-server &
  64. sleep 1
  65. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh `hostname -I|tr -d '[:space:]'`:8001
  66. '''
  67. }
  68. post {
  69. always {
  70. junit 'Pal/regression/pal-regression.xml'
  71. junit 'LibOS/shim/test/regression/libos-regression.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. }