Linux 2.9 KB

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