Posts

Showing posts with the label jenkins

Why getting error failed to parse pom?

Why getting error failed to parse pom? while building project via jenkins getting below error. Building in workspace C:Program Files (x86)JenkinsworkspaceJenkinProject Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip to C:Program Files (x86)Jenkinstoolshudson.tasks.Maven_MavenInstallationTestMaven on Jenkins ERROR: Failed to parse POMs java.io.IOException: Failed to rename C:Program Files (x86)Jenkinstoolshudson.tasks.Maven_MavenInstallationTestMavenapache-maven-3.5.3 to C:Program Files (x86)Jenkinstoolshudson.tasks.Maven_MavenInstallationTestMavenapache-maven-3.5.3.__rename at hudson.FilePath$29.invoke(FilePath.java:2107) at hudson.FilePath$29.invoke(FilePath.java:2100) can you check what files are there at C:Program Files (x86)Jenkinstoolshudson.tasks.Maven_MavenInstallationTestMavenapache-maven-3.5.3 location – Pramod Jun 30 at 14:30 ...

How to tackle configuration file in Jenkins?

How to tackle configuration file in Jenkins? There are some configurations in my code (to connect DB). I wrote them in .env . Users need to create their own .env file to run the application. This is the copy code in Dockerfile: COPY .env server COPY .env test .env .env COPY .env server COPY .env test When I use Jenkins to build a pipline, I have to commit this file, but I should not do that(aws information included there). What is the best practice to save configuration file? Thanks Why not let jenkins handle the credentials for you? Are you talking about credentials for your pipeline or for the application you are deploying? – user3483203 Jun 30 at 19:30 @user3483203 thank you very much! I will check it out. – MongoliaOba Jul 1 at 3:17 ...

How to run jmeter from jenkins

How to run jmeter from jenkins I am setting up jenkins job to run jmeter which is hosted in different host(jemter test setup is there and currently can be executed from terminal and need to setup jenkins job for same). SO far I have created a jenkins job and configured ssh-agent plugin and I am able to run "ssh host_name" command from my jenkins job and getting response. I am stuck and not sure how I can write shell script in my jenkins job to ssh and navigate to jmeter bin directory(apache-jmeter-4.0/bin/) and invoke jemeter test. Any help on this will be really appreciated. I would say use some runner like ant. it gives you more options. testautomationguru.com/… – vins Jun 30 at 14:38 1 Answer 1 Normally you should run...