Then we can see that our project build success. So what we have to do is to upgrade the version of the plugin. Jenkins running error: Failed to execute goal :maven-surefire-plugin:2.18.1 I found a lot of reasons, and finally found that the problem with the jdk version caused the problem with the maven-surefire-plugin that the spring boot relied on. The forked VM terminated without properly saying goodbye. Please refer to dump files (if any exist). Please refer to /var/jenkins_home/workspace/gallery-server/target/surefire-reports for the individual test results. The following error was found during the build project: Failed to execute goal :maven-surefire-plugin:2.22.1:test (default-test) on project gallery: There are test failures. The main entrance needs to be set as follows: There is also a maven plugin that needs to be added with spring boot. īecause we are using a spring boot project, our main method also needs to be set.įor the configuration of how to deploy spring boot to external tomcat, you can refer to the following link: Then take a look at some of the configuration on pom.xml in our project. Then modify tomcat-user.xml It’s best to add: For the configuration of tomcat, you can refer to:įirst is the file under /conf Some people may come in and find that they can use the command of linux vim, this time can be used apt-get updateTo update, after the update is complete, use apt-get install vimCommand to download vim, then we use vi command to modify our configuration file. Then we can use the command docker exec -u 0 -it plus your docker container id plus /bin/bash, here with -u 0 is to bring your current administrator root privileges into docker, let you in docker It also has administrator privileges, or there are many permissions issues that need to be addressed. We can use docker ps to see the docker that is now running. Then you can use the DOCKER CLI to enter our tomcat for configuration, or you can open the virtual machine, and then go to the configuration is the same. We choose to download and install from apache directly, or you can choose to put the maven package into your jenkins directory through the local shared file, unzip the installation and configuration, use linux The command Ln -s /bin/mvn' tomcat7:redeploy-only"ĭownload one directly and install it later. We need to configure our environment on a global tool configuration. So in fact we only need to install maven. Configuring Mavenīecause this image has a java and git environment by default. However, our focus this time is on using Pipline, so we have to build a pipline project, but we need to configure some jenkins environment before building the project. You need to download the plugin.Īfter the new project, you can choose maven project. Normally, a new project cannot create a maven project. Search jenkins, download other images, recommend downloading the followingĪfter logging in, let's take a quick look. It seems that changing the port number is also the case, so it is not very user-friendly, and the port number often changes.īut if you still want to link to your local windows path in the future, remember not to click the button above, you can choose setting, then select volumes, then connect the local path above the point, this way will not cause the above The problem. The shortcoming seems to be that it will restart and become a new docker environment, so it is best to click it at the beginning, otherwise you may ruin your previously built docker and become a brand new one. I think this is very fragrant! But there are also many pits. The official version is still 6.2.Īnother pit is that if you use Kitematic, if you click on Volumes, he can help you mount the folder and mount it to your local Windows computer. Here are some ways to set up a domestic image: įinally, I saw some comments on the docker hub above this image and found that the official version is too low. It is not a problem with the network, because I have changed many other domestic images. But the pit is that the official image will not be installed when installing some plugins. Search for jenkins in Kitematic and you can see the official image. We can install Jenkins via Kitematic, and we have encountered the first pit. But in this article, I will introduce the use of Kitematic, as well as some pits encountered, and summarize some lessons. So if you really want to play docker, you still don't use Kitematic, but you don't need Kitematic at all, but he provides some visual interface, the function is not very powerful and the configurability is not high. It doesn't seem to be used for Xiaobai at all. kitematicThis software, but the pit of this software is really a lot. If you don't know how to install it, you can check out my previous blog post: Docker installs Jenkins to automate build deployment to TomcatAt the time, it was not built using the Pipeline pipeline. I won't elaborate on how to install it here.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |