Linux 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. pipeline {
  2. agent any
  3. stages {
  4. stage('Build') {
  5. steps {
  6. sh '''
  7. make clean && make
  8. '''
  9. }
  10. }
  11. stage('Test') {
  12. steps {
  13. sh '''
  14. cd LibOS/shim/test/apps/gcc
  15. make regression
  16. '''
  17. sh '''
  18. cd LibOS/shim/test/apps/lmbench
  19. make regression
  20. '''
  21. sh '''
  22. cd LibOS/shim/test/apps/python
  23. make regression
  24. '''
  25. sh '''
  26. cd LibOS/shim/test/apps/lighttpd
  27. make
  28. make start-graphene-server &
  29. ./benchmark-http.sh 127.0.0.1:8000
  30. '''
  31. sh '''
  32. cd LibOS/shim/test/apps/apache
  33. make
  34. make start-graphene-server &
  35. ./benchmark-http.sh 127.0.0.1:8000
  36. '''
  37. sh '''
  38. cd Pal/regression
  39. make regression
  40. '''
  41. sh '''
  42. cd LibOS/shim/test/regression
  43. make regression
  44. '''
  45. sh '''
  46. cd LibOS/shim/test/apps/ltp
  47. make
  48. ./syscalls.sh
  49. '''
  50. }
  51. }
  52. stage('Deploy') {
  53. steps {
  54. sh 'echo Deploying code'
  55. }
  56. }
  57. }
  58. post {
  59. success {
  60. echo 'Deployment successful'
  61. }
  62. failure {
  63. echo 'Failure while on the pipeline'
  64. }
  65. unstable {
  66. echo 'Pipeline marked as "unstable"'
  67. }
  68. }
  69. }