Jenkinsfile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. pipeline {
  2. agent any
  3. stages {
  4. stage('Build') {
  5. steps {
  6. sh '''
  7. make DEBUG=1
  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. input 'Tests complete. Do you wish to deploy?'
  51. }
  52. }
  53. stage('Deploy') {
  54. steps {
  55. sh 'echo Deploying code'
  56. }
  57. }
  58. }
  59. post {
  60. success {
  61. echo 'Deployment successful'
  62. }
  63. failure {
  64. echo 'Failure while on the pipeline'
  65. }
  66. unstable {
  67. echo 'Pipeline marked as "unstable"'
  68. }
  69. }
  70. }