Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
ada:howto:sicoferp:factory:new-migracion-sicoferp:repository [2024/04/17 15:22] 192.168.177.32 |
ada:howto:sicoferp:factory:new-migracion-sicoferp:repository [2024/08/08 20:46] (actual) 192.168.177.58 |
||
|---|---|---|---|
| Línea 108: | Línea 108: | ||
| # | # | ||
| # For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages | # For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages | ||
| + | image: maven:3.9.6-amazoncorretto-21 # Ajustar la etiqueta de la imagen si es necesario | ||
| + | variables: | ||
| + | MAVEN_CONFIG: 'settings.xml' | ||
| stages: # List of stages for jobs, and their order of execution | stages: # List of stages for jobs, and their order of execution | ||
| - build | - build | ||
| Línea 117: | Línea 119: | ||
| stage: build | stage: build | ||
| script: | script: | ||
| - | - echo "Compiling the code..." | + | - echo "Compiling the code..." |
| + | - mvn clean package -Dsettings.security=none # Ajustar el comando para Gradle | ||
| - echo "Compile complete." | - echo "Compile complete." | ||
| unit-test-job: # This job runs in the test stage. | unit-test-job: # This job runs in the test stage. | ||
| - | stage: test # It only starts when the job in the build stage completes successfully. | + | stage: test # Etapa opcional para pruebas unitarias |
| script: | script: | ||
| - | - echo "Running unit tests... This will take about 60 seconds." | + | - echo "Running unit tests..." |
| - | - sleep 60 | + | - mvn test |
| - | - echo "Code coverage is 90%" | + | - echo "Test Complete" |
| - | + | ||
| - | lint-test-job: # This job also runs in the test stage. | + | |
| - | stage: test # It can run at the same time as unit-test-job (in parallel). | + | |
| - | script: | + | |
| - | - echo "Linting code... This will take about 10 seconds." | + | |
| - | - sleep 10 | + | |
| - | - echo "No lint issues found." | + | |
| deploy-job: # This job runs in the deploy stage. | deploy-job: # This job runs in the deploy stage. | ||
| - | stage: deploy # It only runs when *both* jobs in the test stage complete successfully. | + | stage: deploy # Etapa opcional para implementación (reemplazar con su estrategia de implementación) |
| script: | script: | ||
| - echo "Deploying application..." | - echo "Deploying application..." | ||
| + | - scp target/*.jar gestion@10.1.140.21:/opt/ada/deploy/cicd # Reemplazar con sus detalles de implementación | ||
| - echo "Application successfully deployed." | - echo "Application successfully deployed." | ||
| </code> | </code> | ||
| + | |||
| + | [[ada:howto:sicoferp:factory:new-migracion-sicoferp:front:flujogit|Flujo Git]] | ||
| Línea 147: | Línea 146: | ||
| - | [[ada:howto:sicoferp:factory|←Volver atrás]] | + | [[ada:howto:sicoferp:factory:new-migracion-sicoferp|←Volver atrás]] |