backend: microservices-oriented architecture, clean-architecture design pattern, spring-boot, spring cloud gateway, spring cloud eureka et spring cloud config. - frontend: angular, observer rxjs

Jenkinsfile 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. pipeline {
  2. agent any //we tell jenkins to use any available agent
  3. tools {
  4. maven 'Maven'
  5. jdk 'Java-17'
  6. nodejs 'NodeJS-v14.21.3'
  7. }
  8. stages {
  9. stage ('Build-service-1') {
  10. steps {
  11. dir('./spring-project-back/microservices-config-service'){ //enter in folder to locate pom.xml
  12. sh 'mvn -B -DskipTests clean verify'
  13. }
  14. }
  15. }
  16. stage ('Build-service-2') {
  17. steps {
  18. dir('./spring-project-back/microservices-registration-service'){
  19. sh 'mvn -B -DskipTests clean verify'
  20. }
  21. }
  22. }
  23. stage ('Build-service-3') {
  24. steps {
  25. dir ('./spring-project-back/backend-frontend-gateway-service'){
  26. sh 'mvn -B -DskipTests clean verify'
  27. }
  28. }
  29. }
  30. stage ('Build-service-4') {
  31. steps {
  32. dir('./spring-project-back/clean-archi-business-service-address/'){
  33. sh 'mvn -B -DskipTests clean verify'
  34. }
  35. }
  36. }
  37. stage ('Build-service-5'){
  38. steps {
  39. dir('./spring-project-back/clean-archi-business-service-company/'){
  40. sh 'mvn -B -DskipTests clean verify'
  41. }
  42. }
  43. }
  44. stage ('Build-service-6'){
  45. steps{
  46. dir('./spring-project-back/clean-archi-business-service-employee/'){
  47. sh 'mvn -B -DskipTests clean verify'
  48. }
  49. }
  50. }
  51. stage ('Build-service-7'){
  52. steps {
  53. dir('./spring-project-back/clean-archi-business-service-project/'){
  54. sh 'mvn -B -DskipTests clean verify'
  55. }
  56. }
  57. }
  58. stage('NPM install'){
  59. steps{
  60. dir('./angular-project-front'){//enter in angular project to run some commands
  61. sh 'npm install'
  62. }
  63. }
  64. }
  65. stage('Build-frontend'){
  66. steps{
  67. dir('./angular-project-front'){//enter in angular project to run some commands
  68. sh 'ng build'
  69. }
  70. }
  71. }
  72. }
  73. }

Powered by TurnKey Linux.