Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-55694] Log audit events for user property changes #19

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Refactor unittest classes

044ccb3
Select commit
Loading
Failed to load commit list.
Open

[JENKINS-55694] Log audit events for user property changes #19

Refactor unittest classes
044ccb3
Select commit
Loading
Failed to load commit list.
ci.jenkins.io / Jenkins failed Jul 30, 2024 in 2m 36s

windows-8/Build (windows-8): error in 'junit' step

linux-8 / Build (linux-8) / Shell Script

Error in sh step, with arguments mvn --batch-mode --show-version --errors --no-transfer-progress --update-snapshots -Dmaven.repo.local=/home/jenkins/agent/workspace/Plugins_audit-log-plugin_PR-19@tmp/m2repo -Dmaven.test.failure.ignore -Dspotbugs.failOnError=false -Dcheckstyle.failOnViolation=false -Dcheckstyle.failsOnError=false -Dpmd.failOnViolation=false -Penable-jacoco -Dset.changelist clean install.

script returned exit code 1
Build log
[2024-07-30T16:47:26.910Z] + mvn --batch-mode --show-version --errors --no-transfer-progress --update-snapshots -Dmaven.repo.local=/home/jenkins/agent/workspace/Plugins_audit-log-plugin_PR-19@tmp/m2repo -Dmaven.test.failure.ignore -Dspotbugs.failOnError=false -Dcheckstyle.failOnViolation=false -Dcheckstyle.failsOnError=false -Dpmd.failOnViolation=false -Penable-jacoco -Dset.changelist clean install
[2024-07-30T16:47:27.312Z] -XX:InitialHeapSize=261822336 -XX:MaxHeapSize=4189157376 -XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseParallelGC 
[2024-07-30T16:47:29.016Z] Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)
[2024-07-30T16:47:29.017Z] Maven home: /home/jenkins/agent/tools/hudson.tasks.Maven_MavenInstallation/mvn
[2024-07-30T16:47:29.017Z] Java version: 1.8.0_422, vendor: Temurin, runtime: /opt/jdk-8/jre
[2024-07-30T16:47:29.017Z] Default locale: en_US, platform encoding: UTF-8
[2024-07-30T16:47:29.018Z] OS name: "linux", version: "6.5.0-1024-azure", arch: "amd64", family: "unix"
[2024-07-30T16:47:32.830Z] [INFO] Error stacktraces are turned on.
[2024-07-30T16:47:33.032Z] [INFO] Setting: -Dchangelist=-rc96.044ccb37f9d9 -DscmTag=044ccb37f9d9f49e2a7a70244ddb157f1f13ee1b
[2024-07-30T16:47:33.032Z] [INFO] Scanning for projects...
[2024-07-30T16:47:36.342Z] [INFO] 
[2024-07-30T16:47:36.342Z] [INFO] --------------------< io.jenkins.plugins:audit-log >--------------------
[2024-07-30T16:47:36.343Z] [INFO] Building Audit Log Plugin 1.0-rc96.044ccb37f9d9
[2024-07-30T16:47:36.343Z] [INFO]   from pom.xml
[2024-07-30T16:47:36.343Z] [INFO] --------------------------------[ hpi ]---------------------------------
[2024-07-30T16:47:36.544Z] [WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:2.7:validate (default-validate)'
[2024-07-30T16:47:36.746Z] [WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:2.7:insert-test (default-insert-test)'
[2024-07-30T16:47:36.746Z] [WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:2.7:test-hpl (default-test-hpl)'
[2024-07-30T16:47:36.747Z] [WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:2.7:resolve-test-dependencies (default-resolve-test-dependencies)'
[2024-07-30T16:47:36.747Z] [WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:2.7:hpi (default-hpi)'
[2024-07-30T16:47:43.561Z] [INFO] 
[2024-07-30T16:47:43.562Z] [INFO] --- clean:3.0.0:clean (default-clean) @ audit-log ---
[2024-07-30T16:47:43.763Z] [INFO] 
[2024-07-30T16:47:43.764Z] [INFO] --- hpi:2.7:validate (default-validate) @ audit-log ---
[2024-07-30T16:47:43.864Z] [INFO] 
[2024-07-30T16:47:43.865Z] [INFO] --- enforcer:3.0.0-M2:display-info (display-info) @ audit-log ---
[2024-07-30T16:47:44.166Z] [INFO] Maven Version: 3.9.8
[2024-07-30T16:47:44.167Z] [INFO] JDK Version: 1.8.0_422 normalized as: 1.8.0-422
[2024-07-30T16:47:44.167Z] [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 6.5.0-1024-azure
[2024-07-30T16:47:44.167Z] [INFO] 
[2024-07-30T16:47:44.168Z] [INFO] --- enforcer:3.0.0-M2:enforce (display-info) @ audit-log ---
[2024-07-30T16:47:45.070Z] [INFO] 
[2024-07-30T16:47:45.073Z] [INFO] --- jacoco:0.7.9:prepare-agent (default) @ audit-log ---
[2024-07-30T16:47:45.374Z] [INFO] argLine set to -javaagent:/home/jenkins/agent/workspace/Plugins_audit-log-plugin_PR-19@tmp/m2repo/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/jenkins/agent/workspace/Plugins_audit-log-plugin_PR-19/target/jacoco.exec,excludes=**/Messages.class -Xmx768M -Djava.awt.headless=true -Djdk.net.URLClassPath.disableClassPathURLCheck=true
[2024-07-30T16:47:45.375Z] [INFO] 
[2024-07-30T16:47:45.375Z] [INFO] --- log4j-audit:1.0.1:generate (generate) @ audit-log ---
[2024-07-30T16:47:46.578Z] [INFO] 
[2024-07-30T16:47:46.578Z] [INFO] --- localizer:1.24:generate (default) @ audit-log ---
[2024-07-30T16:47:46.779Z] [INFO] 
[2024-07-30T16:47:46.780Z] [INFO] --- resources:3.0.2:resources (default-resources) @ audit-log ---
[2024-07-30T16:47:46.780Z] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[2024-07-30T16:47:46.881Z] [INFO] Copying 5 resources
[2024-07-30T16:47:46.881Z] [INFO] 
[2024-07-30T16:47:46.882Z] [INFO] --- flatten:1.0.1:flatten (flatten) @ audit-log ---
[2024-07-30T16:47:47.083Z] [INFO] Generating flattened POM of project io.jenkins.plugins:audit-log:hpi:1.0-rc96.044ccb37f9d9...
[2024-07-30T16:47:47.084Z] [INFO] 
[2024-07-30T16:47:47.084Z] [INFO] --- compiler:3.6.1:compile (default-compile) @ audit-log ---
[2024-07-30T16:47:47.285Z] [INFO] Changes detected - recompiling the module!
[2024-07-30T16:47:47.285Z] [INFO] Compiling 15 source files to /home/jenkins/agent/workspace/Plugins_audit-log-plugin_PR-19/target/classes
[2024-07-30T16:47:48.588Z] [INFO] 
[2024-07-30T16:47:48.589Z] [INFO] --- access-modifier-checker:1.15:enforce (default-enforce) @ audit-log ---
[2024-07-30T16:47:48.690Z] [INFO] 
[2024-07-30T16:47:48.690Z] [INFO] --- animal-sniffer:1.17:check (check) @ audit-log ---
[2024-07-30T16:47:48.791Z] [INFO] Resolved signature org.codehaus.mojo.signature:java18 version as 1.0 from dependencyManagement
[2024-07-30T16:47:48.791Z] [INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:1.0
[2024-07-30T16:47:49.995Z] [INFO] 
[2024-07-30T16:47:49.995Z] [INFO] --- hpi:2.7:insert-test (default-insert-test) @ audit-log ---
[2024-07-30T16:47:49.995Z] [INFO] 
[2024-07-30T16:47:49.996Z] [INFO] --- groovy:1.5-jenkins-3:generateTestStubs (test-in-groovy) @ audit-log ---
[2024-07-30T16:47:50.397Z] [INFO] No sources found for Java stub generation
[2024-07-30T16:47:50.397Z] [INFO] 
[2024-07-30T16:47:50.398Z] [INFO] --- antrun:3.1.0:run (createTempDir) @ audit-log ---
[2024-07-30T16:47:50.498Z] [WARNING]  Parameter 'tasks' is deprecated: Use {@link #target} instead. For version 3.0.0, this parameter is only defined to break the build if
[2024-07-30T16:47:50.499Z]             you use it!
[2024-07-30T16:47:50.499Z] [INFO] ------------------------------------------------------------------------
[2024-07-30T16:47:50.499Z] [INFO] BUILD FAILURE
[2024-07-30T16:47:50.499Z] [INFO] ------------------------------------------------------------------------
[2024-07-30T16:47:50.499Z] [INFO] Total time:  17.680 s
[2024-07-30T16:47:50.500Z] [INFO] Finished at: 2024-07-30T16:47:50Z
[2024-07-30T16:47:50.500Z] [INFO] ------------------------------------------------------------------------
[2024-07-30T16:47:50.500Z] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run (createTempDir) on project audit-log: You are using 'tasks' which has been removed from the maven-antrun-plugin. Please use 'target' and refer to the >>Major Version Upgrade to version 3.0.0<< on the plugin site. -> [Help 1]
[2024-07-30T16:47:50.500Z] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run (createTempDir) on project audit-log: You are using 'tasks' which has been removed from the maven-antrun-plugin. Please use 'target' and refer to the >>Major Version Upgrade to version 3.0.0<< on the plugin site.
[2024-07-30T16:47:50.500Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
[2024-07-30T16:47:50.501Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
[2024-07-30T16:47:50.501Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
[2024-07-30T16:47:50.501Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
[2024-07-30T16:47:50.501Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
[2024-07-30T16:47:50.502Z]     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
[2024-07-30T16:47:50.502Z]     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
[2024-07-30T16:47:50.502Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
[2024-07-30T16:47:50.502Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
[2024-07-30T16:47:50.503Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
[2024-07-30T16:47:50.503Z]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
[2024-07-30T16:47:50.503Z]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
[2024-07-30T16:47:50.503Z]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
[2024-07-30T16:47:50.503Z]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
[2024-07-30T16:47:50.504Z]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
[2024-07-30T16:47:50.504Z]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:903)
[2024-07-30T16:47:50.504Z]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:280)
[2024-07-30T16:47:50.504Z]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:203)
[2024-07-30T16:47:50.504Z]     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
[2024-07-30T16:47:50.505Z]     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
[2024-07-30T16:47:50.505Z]     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
[2024-07-30T16:47:50.505Z]     at java.lang.reflect.Method.invoke (Method.java:498)
[2024-07-30T16:47:50.505Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
[2024-07-30T16:47:50.505Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
[2024-07-30T16:47:50.505Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
[2024-07-30T16:47:50.506Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
[2024-07-30T16:47:50.506Z] Caused by: org.apache.maven.plugin.MojoFailureException: You are using 'tasks' which has been removed from the maven-antrun-plugin. Please use 'target' and refer to the >>Major Version Upgrade to version 3.0.0<< on the plugin site.
[2024-07-30T16:47:50.506Z]     at org.apache.maven.plugins.antrun.AntRunMojo.checkDeprecatedParameterUsage (AntRunMojo.java:332)
[2024-07-30T16:47:50.506Z]     at org.apache.maven.plugins.antrun.AntRunMojo.execute (AntRunMojo.java:256)
[2024-07-30T16:47:50.506Z]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
[2024-07-30T16:47:50.507Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
[2024-07-30T16:47:50.507Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
[2024-07-30T16:47:50.507Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
[2024-07-30T16:47:50.507Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
[2024-07-30T16:47:50.507Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
[2024-07-30T16:47:50.508Z]     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
[2024-07-30T16:47:50.508Z]     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
[2024-07-30T16:47:50.508Z]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
[2024-07-30T16:47:50.508Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
[2024-07-30T16:47:50.508Z]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
[2024-07-30T16:47:50.509Z]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
[2024-07-30T16:47:50.509Z]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
[2024-07-30T16:47:50.509Z]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
[2024-07-30T16:47:50.509Z]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
[2024-07-30T16:47:50.509Z]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
[2024-07-30T16:47:50.509Z]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:903)
[2024-07-30T16:47:50.510Z]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:280)
[2024-07-30T16:47:50.510Z]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:203)
[2024-07-30T16:47:50.510Z]     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
[2024-07-30T16:47:50.510Z]     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
[2024-07-30T16:47:50.510Z]     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
[2024-07-30T16:47:50.510Z]     at java.lang.reflect.Method.invoke (Method.java:498)
[2024-07-30T16:47:50.511Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
[2024-07-30T16:47:50.511Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
[2024-07-30T16:47:50.511Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
[2024-07-30T16:47:50.511Z]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
[2024-07-30T16:47:50.511Z] [ERROR] 
[2024-07-30T16:47:50.512Z] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[2024-07-30T16:47:50.512Z] [ERROR] 
[2024-07-30T16:47:50.512Z] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[2024-07-30T16:47:50.512Z] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

linux-8 / Build (linux-8) / Archive JUnit-formatted test results

Error in junit step, with arguments **/target/surefire-reports/**/*.xml,**/target/failsafe-reports/**/*.xml,**/target/invoker-reports/**/*.xml.

No test report files were found. Configuration error?
Build log
[2024-07-30T16:47:50.310Z] Recording test results
[2024-07-30T16:47:50.457Z] No test report files were found. Configuration error?

windows-8 / Build (windows-8) / Windows Batch Script

Error in bat step, with arguments mvn --batch-mode --show-version --errors --no-transfer-progress --update-snapshots -Dmaven.repo.local=C:/Jenkins/agent/workspace/Plugins_audit-log-plugin_PR-19@tmp/m2repo -Dmaven.test.failure.ignore -Dspotbugs.failOnError=false -Dcheckstyle.failOnViolation=false -Dcheckstyle.failsOnError=false -Dpmd.failOnViolation=false -Dset.changelist help:evaluate -Dexpression=changelist -Doutput=C:/Jenkins/agent/workspace/Plugins_audit-log-plugin_PR-19@tmp/changelist clean install.

null
Build log
[2024-07-30T16:47:28.170Z] 
[2024-07-30T16:47:28.171Z] C:\Jenkins\agent\workspace\Plugins_audit-log-plugin_PR-19>mvn --batch-mode --show-version --errors --no-transfer-progress --update-snapshots -Dmaven.repo.local=C:/Jenkins/agent/workspace/Plugins_audit-log-plugin_PR-19@tmp/m2repo -Dmaven.test.failure.ignore -Dspotbugs.failOnError=false -Dcheckstyle.failOnViolation=false -Dcheckstyle.failsOnError=false -Dpmd.failOnViolation=false -Dset.changelist help:evaluate -Dexpression=changelist -Doutput=C:/Jenkins/agent/workspace/Plugins_audit-log-plugin_PR-19@tmp/changelist clean install 
[2024-07-30T16:47:29.594Z] -XX:InitialHeapSize=268417088 -XX:MaxHeapSize=4294673408 -XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:-UseLargePagesIndividualAllocation -XX:+UseParallelGC 
[2024-07-30T16:47:34.351Z] Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)
[2024-07-30T16:47:34.352Z] Maven home: C:\Jenkins\agent\tools\hudson.tasks.Maven_MavenInstallation\mvn
[2024-07-30T16:47:34.352Z] Java version: 1.8.0_422, vendor: Temurin, runtime: C:\tools\jdk-8\jre
[2024-07-30T16:47:34.352Z] Default locale: en_US, platform encoding: Cp1252
[2024-07-30T16:47:34.352Z] OS name: "windows server 2019", version: "10.0", arch: "amd64", family: "windows"
[2024-07-30T16:47:49.869Z] [INFO] Error stacktraces are turned on.
[2024-07-30T16:47:52.377Z] Sending interrupt signal to process
[2024-07-30T16:47:52.108Z] [INFO] Setting: -Dchangelist=-rc96.044ccb37f9d9 -DscmTag=044ccb37f9d9f49e2a7a70244ddb157f1f13ee1b
[2024-07-30T16:47:52.108Z] [INFO] Scanning for projects...
[2024-07-30T16:47:53.132Z] Terminate batch job (Y/N)? 
[2024-07-30T16:47:52.737Z] script returned exit code 1

windows-8 / Build (windows-8) / Archive JUnit-formatted test results

Error in junit step, with arguments **/target/surefire-reports/**/*.xml,**/target/failsafe-reports/**/*.xml,**/target/invoker-reports/**/*.xml.

No test report files were found. Configuration error?
Build log
[2024-07-30T16:47:52.910Z] Recording test results
[2024-07-30T16:47:53.098Z] No test report files were found. Configuration error?

Details

  • linux-8 (51 ms)
    • Checkout (linux-8) (8.6 sec)
    • Build (linux-8) (27 sec)
      Error: script returned exit code 1
      Error: No test report files were found. Configuration error?
  • windows-8 (2 min 35 sec)
    • Checkout (windows-8) (18 sec)
    • Build (windows-8) (28 sec)
      Error: null
      Error: No test report files were found. Configuration error?