Linux 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. make
  26. ./syscalls.sh
  27. '''
  28. timeout(time: 5, unit: 'MINUTES') {
  29. sh '''
  30. cd LibOS/shim/test/apps/python
  31. make regression
  32. '''
  33. }
  34. sh '''
  35. cd LibOS/shim/test/apps/bash
  36. make regression
  37. '''
  38. timeout(time: 5, unit: 'MINUTES') {
  39. sh '''
  40. cd LibOS/shim/test/apps/gcc
  41. make regression
  42. '''
  43. }
  44. timeout(time: 15, unit: 'MINUTES') {
  45. sh '''
  46. cd LibOS/shim/test/apps/lmbench
  47. make regression
  48. '''
  49. }
  50. sh '''
  51. cd LibOS/shim/test/apps/lighttpd
  52. make
  53. make start-graphene-server &
  54. sleep 1
  55. ./benchmark-http.sh `hostname -I|tr -d '[:space:]'`:8000
  56. '''
  57. sh '''
  58. cd LibOS/shim/test/apps/apache
  59. make
  60. make start-graphene-server &
  61. sleep 1
  62. ./benchmark-http.sh `hostname -I|tr -d '[:space:]'`:8001
  63. '''
  64. }
  65. }
  66. stage('Deploy') {
  67. steps {
  68. sh 'echo Deploying code'
  69. }
  70. }
  71. }
  72. post {
  73. success {
  74. echo 'Deployment successful'
  75. }
  76. failure {
  77. echo 'Failure while on the pipeline'
  78. }
  79. unstable {
  80. echo 'Pipeline marked as "unstable"'
  81. }
  82. }
  83. }