After installing several plugins , I needs to restart Jenkins and went into a “shutting down” mode, but never restarts. how can I restart Jenkins ? Solution to restart Jenkins To restart Jenkins you can use : [jenkins_url]/safeRestart : Allows all running jobs to complete. New jobs will remain in the queue to run after […]
Articles taggés:jenkins
(SOLVED) How to deploy build jar/war to remote server over SSH on Jenkins ?
Install Publish Over SSH Plugin In a jenkins pipeline, we need to deploy the jar/war file after build, we can do this using SSH to a remote server (example ubuntu Server) . We will need to install Publish Over SSH So go to Manage Jenkins —> Manage Plugins Add remote server to Jenkins Config After […]
Example : Jenkins and GitLab integration
Gitlab and Jenkins integration : The objective of GitLab and Jenkins integration is to allow us to trigger a Jenkins build when ( jenkins gitlab webhook ) : A code is pushed to a repository A merge request is created. In this tutorial , we will try to integrate GitLab and Jenkins. GitLab Configuration Create […]
Example of SonarQube with Jenkins using Docker Images
Objective In the end of this tutorial we will have two Docker containers running on the same host, one will be for Jenkins and the other for SonarQube. In the Jenkins container, we will use sonar-scanner running locally to perform the code quality inspections. Before starting this tutorial , you will need to install docker Jenkins […]
(SOLVED) mvn: not found jenkins
mvn: not found jenkins: If you are running a Maven/Spring project in Jenkins and you are using the shell script option to run some maven command like : and you got this the build error : /Users/Shared/Jenkins/tmp/jenkins8087926087546049217.sh: line 3: mvn: command not found Try this solution : Import the maven path variable before execute the […]
(SOLVED) you must define the following mandatory properties for ‘unknown’: sonar.projectkey
you must define the following mandatory properties for ‘unknown’: sonar.projectkey : If you have this error in jenkins console when you try to use sonar scanner try the next solution : Error msg: You must define the following mandatory properties for ‘Unknown’: sonar.projectKey Solution : projectKey is simply the unique identifier of your project inside […]
(SOLVED) please provide compiled classes with sonar.java.binaries property
When you have this error message during sonar scanner win jenkins try the next solution ! Error msg : Your project contains .java files, please provide compiled classes with sonar.java.binaries property Solution : Try to configure the : Analysis properties / Propriétés de l’analyse of sonar scanner like the next configure :