Hi All,
I have a requirement in the project to establish CI/CD using gitlab.I am aware of CI/CD using github and Jenkins but need suggestion on how do I use gitlab for CI/CD.
Thanks,
Sonal
please suggest
From CI/CD perspective, there is no difference between Jenkins or Gitlab CI.
Both can invoke maven goal.
https://docs.gitlab.com/ee/ci/examples/artifactory_and_gitlab/index.html
You can use same pom.xml file that you are using with Jenkins.
Hi, @sonal_sheetal
GitLab is basically an all-in-one DevOps solution.
The central default CI file is .gitlab-ci.yml - https://docs.gitlab.com/ee/ci/yaml/
For the proxy, deployments look into - https://github.com/apigee/apigee-deploy-maven-plugin
e.g.: your .gitlab-ci.yml content would look like the following:
stages:
- deploy
deploy:
image: maven:latest
stage: deploy
script:
- mvn install -P %put here maven profile name% -X
Yes as @optimism mentioned, you just use the Gitlab runner to orchestrate the Maven call. I dont have a Gitlab sample, you can use this Jenkinsfile as an example and build it for Gitlab