I have the next server configuration, docker container with gitlab, docker container with jenkins and docker container with wildfly and I need that jenkins look if there is a new code in gitlab and if it is yes that compile and make and artifact or buil or reponse or .jar and deploy the aplication in the wildfly server (before JBoss java server applet). ¿Can anybody help me?
I think the first part is pretty straightforward, and for the second one, that’s only wildguesses.
Set up GitLab Webhook: Configure a webhook in GitLab to notify Jenkins whenever there’s a new code push or merge request. This webhook will trigger the Jenkins pipeline.
Jenkins Pipeline: Create a Jenkins pipeline that performs the following tasks:
a. Checkout Code: The pipeline should start by checking out the latest code from the GitLab repository.
b. Build and Create Artifact: Use build tools like Maven or Gradle to compile the code and create a deployable artifact (e.g., a .jar file).
c. Deploy to Wildfly: After a successful build, deploy the artifact to the Wildfly server. This step can involve using a Wildfly-specific plugin or using SSH commands to copy the artifact to the Wildfly container.
I am trying now to conect gitlab and jenkins but it is horrible, I am making api token in gitlab and make the conection in jenkins but it say me (Client error: HTTP 503 Service Unavailable).
GitLab API Plugin
Versión5.3.0-91.v1f9a_fda_d654f
This plugin provides GitLab4J API for other plugins.
Report an issue with this plugin
GitLab Authentication plugin
Versión1.17
This is the an authentication plugin using gitlab OAuth.
Report an issue with this plugin
GitLab Plugin
Versión1.7.14
This plugin allows GitLab to trigger Jenkins builds and display their results in the GitLab UI.
Report an issue with this plugin
I have a windows 10 phisical machine, I have a virtual box virtual software 7.0.4, one virtual machine in debian with jenkins version 2.346.3 and gitlbab-ce version 15.5.1 , in the jenkins I have a screen to put the proxy network but in gitlab-ce have I to put proxy settings?
Docker is another infraestructure in other environment but I have the same problem.
Hello hello, vacation is over, ha ha ha ha ha ha.
When I try make a pipeline and configure the gitlab conection to jenkin it show me this error. I hope someone can help me.