mmariscalg / jenkins-test-failure-magnifier

2 stars 1 forks source link

Implementar un plugin simple para Jenkins #3

Open gortazar opened 8 years ago

gortazar commented 8 years ago

Implementar el ejemplo mostrado en este tutorial.

mmariscalg commented 8 years ago

Buenas Patxi, Perdona por tardar tanto en contestar pero es he estado de vacaciones. Me pongo con ello.

mmariscalg commented 7 years ago

Buenas tardes Patxi,

Tras muchos movimientos en el trabajo ahora parece que se me presenta una época un poco más tranquila, por lo que lo veo un buen momento para empezar a centrarme en el proyecto.

Tras pegarme con ello, parece que ya he conseguido sacar esta primera parte.

Antes de ello, practiqué un poco más con un sencillo tutorial que encontré como introducción: https://github.com/sergiogasparllanos/exposicion

Pero yendo al grano, he configurado ya jenkins y maven correctamente y generado el proyecto, el resultado por si acaso le añado como un nuevo comentario.

Tras ello lo he lanzado desde el cmd y he entrado al "nuevo" jenkins en local, con estas pruebas:

french_opt.png

installed_plugins.png

Un saludo y gracias por tu paciencia, Mario

mmariscalg commented 7 years ago

Lanzada por el usuario mmariscalg Ejecutando.en el espacio de trabajo C:\Program Files (x86)\Jenkins\workspace\Hello-world

C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/jenkinsci/hello-world-plugin # timeout=10 Fetching upstream changes from https://github.com/jenkinsci/hello-world-plugin C:\Program Files\Git\bin\git.exe --version # timeout=10 using GIT_ASKPASS to set credentials C:\Program Files\Git\bin\git.exe fetch --tags --progress https://github.com/jenkinsci/hello-world-plugin +refs/heads/:refs/remotes/origin/ C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision a33747ab7133bfc39b55d92439787c1da0589a43 (refs/remotes/origin/master) Commit message: "[maven-release-plugin] prepare for next development iteration" C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10 C:\Program Files\Git\bin\git.exe checkout -f a33747ab7133bfc39b55d92439787c1da0589a43 C:\Program Files\Git\bin\git.exe rev-list a33747ab7133bfc39b55d92439787c1da0589a43 # timeout=10 [Hello-world] $ cmd.exe /C '""C:\Program Files (x86)\apache-maven-3.3.9\bin\mvn.cmd"' -Dmaven.test.skip=true -DskipTests=true clean install && exit %%ERRORLEVEL%%" [INFO] Scanning for projects... [WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:1.115 is missing, no dependency information available [WARNING] Failed to build parent project for org.jenkins-ci.plugins:hello-world:hpi:2.1-SNAPSHOT [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Hello World Example Plugin 2.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.6:clean (default-clean) @ hello-world --- [INFO] Deleting C:\Program Files (x86)\Jenkins\workspace\Hello-world\target [INFO] [INFO] --- maven-hpi-plugin:1.115:validate (default-validate) @ hello-world --- [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:display-info (display-info) @ hello-world --- [INFO] Maven Version: 3.3.9 [INFO] JDK Version: 1.7.0_51 normalized as: 1.7.0-51 [INFO] OS Info: Arch: amd64 Family: windows Name: windows 8 Version: 6.2 [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (display-info) @ hello-world --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (default) @ hello-world --- [INFO] argLine set to "-javaagent:C:\.m2\repository\org\jacoco\org.jacoco.agent\0.7.2.201409121644\org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\jacoco.exec,excludes=/Messages.class" [INFO] [INFO] --- maven-localizer-plugin:1.23:generate (default) @ hello-world --- [INFO] [INFO] >>> maven-javadoc-plugin:2.10.1:javadoc (default) > generate-sources @ hello-world >>> [INFO] [INFO] --- maven-hpi-plugin:1.115:validate (default-validate) @ hello-world --- [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:display-info (display-info) @ hello-world --- [INFO] Maven Version: 3.3.9 [INFO] JDK Version: 1.7.0_51 normalized as: 1.7.0-51 [INFO] OS Info: Arch: amd64 Family: windows Name: windows 8 Version: 6.2 [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (display-info) @ hello-world --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (default) @ hello-world --- [INFO] argLine set to "-javaagent:C:\.m2\repository\org\jacoco\org.jacoco.agent\0.7.2.201409121644\org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\jacoco.exec,excludes=/Messages.class" [INFO] [INFO] --- maven-localizer-plugin:1.23:generate (default) @ hello-world --- [INFO] [INFO] <<< maven-javadoc-plugin:2.10.1:javadoc (default) < generate-sources @ hello-world <<< [INFO] [INFO] --- maven-javadoc-plugin:2.10.1:javadoc (default) @ hello-world --- [INFO] Skipping javadoc generation [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ hello-world --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ hello-world --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\classes [INFO] [INFO] --- access-modifier-checker:1.7:enforce (default-enforce) @ hello-world --- [INFO] [INFO] --- animal-sniffer-maven-plugin:1.14:check (check) @ hello-world --- [INFO] Resolved signature org.codehaus.mojo.signature:java16 version as 1.1 from dependencyManagement [INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.1 [INFO] [INFO] --- maven-hpi-plugin:1.115:insert-test (default-insert-test) @ hello-world --- [INFO] [INFO] --- gmaven-plugin:1.5-jenkins-3:generateTestStubs (test-in-groovy) @ hello-world --- [INFO] No sources found for Java stub generation [INFO] [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ hello-world --- [INFO] Not copying test resources [INFO] [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ hello-world --- [INFO] Not compiling test sources [INFO] [INFO] --- maven-hpi-plugin:1.115:test-hpl (default-test-hpl) @ hello-world --- [INFO] Generating C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\test-classes\the.hpl [INFO] [INFO] --- maven-hpi-plugin:1.115:resolve-test-dependencies (default-resolve-test-dependencies) @ hello-world --- [INFO] [INFO] --- gmaven-plugin:1.5-jenkins-3:testCompile (test-in-groovy) @ hello-world --- [INFO] Test compiliation is skipped [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ hello-world --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-license-plugin:1.7:process (default) @ hello-world --- [INFO] Generated C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world\WEB-INF\licenses.xml [INFO] [INFO] --- jacoco-maven-plugin:0.7.2.201409121644:report (report) @ hello-world --- [INFO] Skipping JaCoCo execution due to missing execution data file:C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\jacoco.exec [INFO] [INFO] --- maven-hpi-plugin:1.115:hpi (default-hpi) @ hello-world --- [INFO] Generating C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world\META-INF\MANIFEST.MF [INFO] Checking for attached .jar artifact ... [INFO] Generating jar C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world.jar [INFO] Building jar: C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world.jar [INFO] Exploding webapp... [INFO] Copy webapp webResources to C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world [INFO] Assembling webapp hello-world in C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world [INFO] Generating hpi C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world.hpi [INFO] Building jar: C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world.hpi [INFO] [INFO] >>> findbugs-maven-plugin:3.0.3:check (findbugs) > :findbugs @ hello-world >>> [INFO] [INFO] --- findbugs-maven-plugin:3.0.3:findbugs (findbugs) @ hello-world --- [INFO] [INFO] <<< findbugs-maven-plugin:3.0.3:check (findbugs) < :findbugs @ hello-world <<< [INFO] [INFO] --- findbugs-maven-plugin:3.0.3:check (findbugs) @ hello-world --- [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ hello-world --- [INFO] Installing C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world.hpi to C:.m2\repository\org\jenkins-ci\plugins\hello-world\2.1-SNAPSHOT\hello-world-2.1-SNAPSHOT.hpi [INFO] Installing C:\Program Files (x86)\Jenkins\workspace\Hello-world\pom.xml to C:.m2\repository\org\jenkins-ci\plugins\hello-world\2.1-SNAPSHOT\hello-world-2.1-SNAPSHOT.pom [INFO] Installing C:\Program Files (x86)\Jenkins\workspace\Hello-world\target\hello-world.jar to C:.m2\repository\org\jenkins-ci\plugins\hello-world\2.1-SNAPSHOT\hello-world-2.1-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.652 s [INFO] Finished at: 2017-07-12T15:17:02+02:00 [INFO] Final Memory: 58M/694M [INFO] ------------------------------------------------------------------------ Finished: SUCCESS