Add a replacement API for jira interaction #3829
Draft
ci.jenkins.io / Jenkins
failed
Aug 21, 2024 in 1m 53s
Archive: error in 'archiveArtifacts' step
Build / Shell Script
Error in sh
step, with arguments mvn -U -B -ntp clean verify
.
script returned exit code 1
Build log
[2024-08-21T12:27:25.644Z] + mvn -U -B -ntp clean verify
[2024-08-21T12:27:26.650Z] [INFO] Scanning for projects...
[2024-08-21T12:27:27.554Z] [INFO]
[2024-08-21T12:27:27.554Z] [INFO] ----------< io.jenkins.infra:repository-permissions-updater >-----------
[2024-08-21T12:27:27.555Z] [INFO] Building Artifactory Upload Permissions Updater 1.0-SNAPSHOT
[2024-08-21T12:27:27.555Z] [INFO] from pom.xml
[2024-08-21T12:27:27.555Z] [INFO] --------------------------------[ jar ]---------------------------------
[2024-08-21T12:28:02.037Z] [INFO]
[2024-08-21T12:28:02.037Z] [INFO] --- clean:3.3.2:clean (default-clean) @ repository-permissions-updater ---
[2024-08-21T12:28:02.439Z] [INFO]
[2024-08-21T12:28:02.439Z] [INFO] --- buildnumber:3.2.0:create (default) @ repository-permissions-updater ---
[2024-08-21T12:28:15.066Z] [INFO] Executing: /bin/sh -c cd '/home/jenkins/agent/workspace/tory-permissions-updater_PR-3829' && 'git' 'rev-parse' '--show-prefix'
[2024-08-21T12:28:15.066Z] [INFO] Working directory: /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829
[2024-08-21T12:28:15.066Z] [INFO] Executing: /bin/sh -c cd '/home/jenkins/agent/workspace/tory-permissions-updater_PR-3829' && 'git' 'status' '--porcelain' '.'
[2024-08-21T12:28:15.067Z] [INFO] Working directory: /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829
[2024-08-21T12:28:15.067Z] [INFO] Executing: /bin/sh -c cd '/home/jenkins/agent/workspace/tory-permissions-updater_PR-3829' && 'git' 'rev-parse' '--verify' 'HEAD'
[2024-08-21T12:28:15.067Z] [INFO] Working directory: /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829
[2024-08-21T12:28:15.067Z] [INFO] Storing buildNumber: 62c9ad4a1596efe3d6cc873f8a5cf43befa37a9e at timestamp: 1724243294980
[2024-08-21T12:28:15.068Z] [INFO] Executing: /bin/sh -c cd '/home/jenkins/agent/workspace/tory-permissions-updater_PR-3829' && 'git' 'symbolic-ref' 'HEAD'
[2024-08-21T12:28:15.068Z] [INFO] Working directory: /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829
[2024-08-21T12:28:15.168Z] [WARNING] Cannot get the branch information from the git repository:
[2024-08-21T12:28:15.169Z] Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref
[2024-08-21T12:28:15.169Z]
[2024-08-21T12:28:15.170Z] [INFO] Executing: /bin/sh -c cd '/home/jenkins/agent/workspace/tory-permissions-updater_PR-3829' && 'git' 'rev-parse' '--verify' 'HEAD'
[2024-08-21T12:28:15.170Z] [INFO] Working directory: /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829
[2024-08-21T12:28:15.170Z] [INFO] Storing scmBranch: UNKNOWN
[2024-08-21T12:28:15.170Z] [INFO]
[2024-08-21T12:28:15.170Z] [INFO] --- enforcer:3.5.0:enforce (display-info) @ repository-permissions-updater ---
[2024-08-21T12:28:17.575Z] [INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[2024-08-21T12:28:17.576Z] [INFO] Rule 1: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[2024-08-21T12:28:17.576Z] [INFO] Rule 2: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed
[2024-08-21T12:28:17.576Z] [INFO] Rule 3: org.apache.maven.enforcer.rules.dependency.RequireUpperBoundDeps passed
[2024-08-21T12:28:17.878Z] [INFO] Rule 4: org.codehaus.mojo.extraenforcer.dependencies.EnforceBytecodeVersion passed
[2024-08-21T12:28:17.878Z] [INFO]
[2024-08-21T12:28:17.878Z] [INFO] --- gplus:3.0.2:addSources (default) @ repository-permissions-updater ---
[2024-08-21T12:28:22.388Z] [INFO]
[2024-08-21T12:28:22.388Z] [INFO] --- gplus:3.0.2:addTestSources (default) @ repository-permissions-updater ---
[2024-08-21T12:28:22.388Z] [INFO]
[2024-08-21T12:28:22.388Z] [INFO] --- gplus:3.0.2:generateStubs (default) @ repository-permissions-updater ---
[2024-08-21T12:28:22.388Z] [INFO] Using isolated classloader, without GMavenPlus classpath.
[2024-08-21T12:28:22.489Z] [INFO] Using Groovy 2.5.22 to perform generateStubs.
[2024-08-21T12:28:22.790Z] [INFO] Generated 2 stubs.
[2024-08-21T12:28:22.791Z] [INFO]
[2024-08-21T12:28:22.791Z] [INFO] --- resources:3.3.1:resources (default-resources) @ repository-permissions-updater ---
[2024-08-21T12:28:23.593Z] [INFO] Copying 1 resource from src/main/resources to target/classes
[2024-08-21T12:28:23.593Z] [INFO]
[2024-08-21T12:28:23.594Z] [INFO] --- compiler:3.13.0:compile (default-compile) @ repository-permissions-updater ---
[2024-08-21T12:28:25.498Z] [INFO] Recompiling the module because of changed source code.
[2024-08-21T12:28:25.499Z] [INFO] Compiling 29 source files with javac [debug parameters release 21] to target/classes
[2024-08-21T12:28:26.702Z] [WARNING] /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/target/generated-sources/groovy-stubs/main/io/jenkins/infra/repository_permissions_updater/ArtifactoryAPI.java:[14,44] Boolean(boolean) in java.lang.Boolean has been deprecated and marked for removal
[2024-08-21T12:28:26.702Z] [INFO] /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/src/main/java/io/jenkins/infra/repository_permissions_updater/hosting/Hoster.java: /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/src/main/java/io/jenkins/infra/repository_permissions_updater/hosting/Hoster.java uses or overrides a deprecated API.
[2024-08-21T12:28:26.702Z] [INFO] /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/src/main/java/io/jenkins/infra/repository_permissions_updater/hosting/Hoster.java: Recompile with -Xlint:deprecation for details.
[2024-08-21T12:28:26.703Z] [INFO]
[2024-08-21T12:28:26.703Z] [INFO] --- gplus:3.0.2:compile (default) @ repository-permissions-updater ---
[2024-08-21T12:28:26.703Z] [INFO] Using isolated classloader, without GMavenPlus classpath.
[2024-08-21T12:28:26.804Z] [INFO] Using Groovy 2.5.22 to perform compile.
[2024-08-21T12:28:27.205Z] [INFO] Compiled 28 files.
[2024-08-21T12:28:27.206Z] [INFO]
[2024-08-21T12:28:27.206Z] [INFO] --- gplus:3.0.2:removeStubs (default) @ repository-permissions-updater ---
[2024-08-21T12:28:27.206Z] [INFO]
[2024-08-21T12:28:27.206Z] [INFO] --- gplus:3.0.2:generateTestStubs (default) @ repository-permissions-updater ---
[2024-08-21T12:28:27.206Z] [INFO] No sources specified for stub generation. Skipping.
[2024-08-21T12:28:27.207Z] [INFO] Generated 0 stubs.
[2024-08-21T12:28:27.207Z] [INFO]
[2024-08-21T12:28:27.207Z] [INFO] --- resources:3.3.1:testResources (default-testResources) @ repository-permissions-updater ---
[2024-08-21T12:28:27.207Z] [INFO] Copying 3 resources from src/test/resources to target/test-classes
[2024-08-21T12:28:27.207Z] [INFO]
[2024-08-21T12:28:27.207Z] [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ repository-permissions-updater ---
[2024-08-21T12:28:27.207Z] [INFO] Recompiling the module because of changed dependency.
[2024-08-21T12:28:27.208Z] [INFO] Compiling 5 source files with javac [debug parameters release 21] to target/test-classes
[2024-08-21T12:28:27.509Z] [INFO] /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/src/test/java/io/jenkins/infra/repository_permissions_updater/helper/HttpUrlStreamHandler.java: /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/src/test/java/io/jenkins/infra/repository_permissions_updater/helper/HttpUrlStreamHandler.java uses unchecked or unsafe operations.
[2024-08-21T12:28:27.509Z] [INFO] /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/src/test/java/io/jenkins/infra/repository_permissions_updater/helper/HttpUrlStreamHandler.java: Recompile with -Xlint:unchecked for details.
[2024-08-21T12:28:27.509Z] [INFO]
[2024-08-21T12:28:27.510Z] [INFO] --- gplus:3.0.2:compileTests (default) @ repository-permissions-updater ---
[2024-08-21T12:28:27.510Z] [INFO] No sources specified for compilation. Skipping.
[2024-08-21T12:28:27.510Z] [INFO]
[2024-08-21T12:28:27.510Z] [INFO] --- gplus:3.0.2:removeTestStubs (default) @ repository-permissions-updater ---
[2024-08-21T12:28:27.510Z] [INFO]
[2024-08-21T12:28:27.510Z] [INFO] --- surefire:3.2.5:test (default-test) @ repository-permissions-updater ---
[2024-08-21T12:28:32.722Z] [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[2024-08-21T12:28:34.627Z] [INFO]
[2024-08-21T12:28:34.627Z] [INFO] -------------------------------------------------------
[2024-08-21T12:28:34.627Z] [INFO] T E S T S
[2024-08-21T12:28:34.627Z] [INFO] -------------------------------------------------------
[2024-08-21T12:28:35.129Z] [INFO] Running io.jenkins.infra.repository_permissions_updater.GithubAPITest
[2024-08-21T12:28:35.430Z] OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
[2024-08-21T12:28:37.034Z] [INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.975 s -- in io.jenkins.infra.repository_permissions_updater.GithubAPITest
[2024-08-21T12:28:37.034Z] [INFO] Running io.jenkins.infra.repository_permissions_updater.JiraAPITest
[2024-08-21T12:28:37.436Z] [INFO] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.340 s -- in io.jenkins.infra.repository_permissions_updater.JiraAPITest
[2024-08-21T12:28:37.436Z] [INFO] Running io.jenkins.infra.repository_permissions_updater.hosting.HostingRequestParserTest
[2024-08-21T12:28:37.436Z] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s -- in io.jenkins.infra.repository_permissions_updater.hosting.HostingRequestParserTest
[2024-08-21T12:28:37.436Z] [INFO]
[2024-08-21T12:28:37.436Z] [INFO] Results:
[2024-08-21T12:28:37.436Z] [INFO]
[2024-08-21T12:28:37.436Z] [INFO] Tests run: 31, Failures: 0, Errors: 0, Skipped: 0
[2024-08-21T12:28:37.437Z] [INFO]
[2024-08-21T12:28:37.437Z] [INFO]
[2024-08-21T12:28:37.437Z] [INFO] --- jar:3.4.1:jar (default-jar) @ repository-permissions-updater ---
[2024-08-21T12:28:39.542Z] [INFO] Building jar: /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/target/repository-permissions-updater-1.0-SNAPSHOT.jar
[2024-08-21T12:28:39.542Z] [INFO]
[2024-08-21T12:28:39.543Z] [INFO] --- assembly:3.7.1:single (default) @ repository-permissions-updater ---
[2024-08-21T12:28:40.545Z] [INFO] Reading assembly descriptor: src/assembly.xml
[2024-08-21T12:28:40.847Z] [INFO] Copying files to /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/target/repository-permissions-updater-1.0-SNAPSHOT-bin
[2024-08-21T12:28:40.847Z] [INFO] 101 files copied to /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/target/repository-permissions-updater-1.0-SNAPSHOT-bin
[2024-08-21T12:28:40.847Z] [WARNING] Assembly file: /home/jenkins/agent/workspace/tory-permissions-updater_PR-3829/target/repository-permissions-updater-1.0-SNAPSHOT-bin is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment.
[2024-08-21T12:28:40.847Z] [INFO]
[2024-08-21T12:28:40.848Z] [INFO] >>> spotbugs:4.8.3.1:check (spotbugs) > :spotbugs @ repository-permissions-updater >>>
[2024-08-21T12:28:40.948Z] [INFO]
[2024-08-21T12:28:40.949Z] [INFO] --- spotbugs:4.8.3.1:spotbugs (spotbugs) @ repository-permissions-updater ---
[2024-08-21T12:28:59.283Z] [INFO] Fork Value is true
[2024-08-21T12:29:06.298Z] [java] The following classes needed for analysis were missing:
[2024-08-21T12:29:06.298Z] [java] makeConcatWithConstants
[2024-08-21T12:29:06.298Z] [java] accept
[2024-08-21T12:29:06.299Z] [java] apply
[2024-08-21T12:29:06.299Z] [java] compare
[2024-08-21T12:29:06.299Z] [java] test
[2024-08-21T12:29:06.299Z] [INFO] Done SpotBugs Analysis....
[2024-08-21T12:29:06.500Z] [INFO]
[2024-08-21T12:29:06.501Z] [INFO] <<< spotbugs:4.8.3.1:check (spotbugs) < :spotbugs @ repository-permissions-updater <<<
[2024-08-21T12:29:06.501Z] [INFO]
[2024-08-21T12:29:06.501Z] [INFO]
[2024-08-21T12:29:06.501Z] [INFO] --- spotbugs:4.8.3.1:check (spotbugs) @ repository-permissions-updater ---
[2024-08-21T12:29:06.602Z] [INFO] BugInstance size is 1
[2024-08-21T12:29:06.603Z] [INFO] Error size is 0
[2024-08-21T12:29:06.603Z] [INFO] Total bugs: 1
[2024-08-21T12:29:06.603Z] [ERROR] Medium: Unread public/protected field: io.jenkins.infra.repository_permissions_updater.Definition$CD.exclusive [io.jenkins.infra.repository_permissions_updater.Definition$CD] At Definition.java:[line 15] URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD
[2024-08-21T12:29:06.603Z] [INFO]
[2024-08-21T12:29:06.603Z]
[2024-08-21T12:29:06.603Z]
[2024-08-21T12:29:06.603Z] To see bug detail using the Spotbugs GUI, use the following command "mvn spotbugs:gui"
[2024-08-21T12:29:06.603Z]
[2024-08-21T12:29:06.603Z]
[2024-08-21T12:29:06.604Z]
[2024-08-21T12:29:06.604Z] [INFO] ------------------------------------------------------------------------
[2024-08-21T12:29:06.604Z] [INFO] BUILD FAILURE
[2024-08-21T12:29:06.604Z] [INFO] ------------------------------------------------------------------------
[2024-08-21T12:29:06.604Z] [INFO] Total time: 01:39 min
[2024-08-21T12:29:06.605Z] [INFO] Finished at: 2024-08-21T12:29:06Z
[2024-08-21T12:29:06.605Z] [INFO] ------------------------------------------------------------------------
[2024-08-21T12:29:06.605Z] [ERROR] Failed to execute goal com.github.spotbugs:spotbugs-maven-plugin:4.8.3.1:check (spotbugs) on project repository-permissions-updater: failed with 1 bugs and 0 errors -> [Help 1]
[2024-08-21T12:29:06.605Z] [ERROR]
[2024-08-21T12:29:06.605Z] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[2024-08-21T12:29:06.606Z] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[2024-08-21T12:29:06.606Z] [ERROR]
[2024-08-21T12:29:06.606Z] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[2024-08-21T12:29:06.606Z] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Archive / Archive the artifacts
Error in archiveArtifacts
step, with arguments json/*.json
.
No artifacts found that match the file pattern "json/*.json". Configuration error?
Build log
[2024-08-21T12:29:07.808Z] Archiving artifacts
[2024-08-21T12:29:07.872Z] ‘json/*.json’ doesn’t match anything: even ‘json’ doesn’t exist
Details
- Clean (2.5 sec)
- Checkout (7.5 sec)
- Build (1 min 41 sec)
Error: script returned exit code 1 - Archive (1.5 sec)
Error: No artifacts found that match the file pattern "json/.json". Configuration error?*
Loading