opendevstack / opendevstack/ods-provisioning-app

Could not find com.atlassian.platform:platform:3.5.2

Open
#738 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
14
Forks
20
Avg merge
3h 35m
Merged PRs (30d)
1

Description

Describe the bug
Compilation of provisioning app returns
Could not find com.atlassian.platform:platform:3.5.2

To Reproduce
Steps to reproduce the behavior:
Try to build odsBox using Jenkins pipeline.

Expected behavior
Provisioning app gets compiled.

Screenshots
N/A

Affected version (please complete the following information):

  • OpenDevStack [4.x, master]

Log Output (ensure to remove any confidential information like tokens, project names, etc.

[2022-06-21T21:28:20.196Z]     amazon-ebs: + ./gradlew clean build --stacktrace --no-daemon
[2022-06-21T21:28:20.196Z]     amazon-ebs: Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
[2022-06-21T21:28:20.196Z]     amazon-ebs: Downloading https://services.gradle.org/distributions/gradle-6.7.1-bin.zip
[2022-06-21T21:28:20.196Z]     amazon-ebs: .........10%..........20%..........30%..........40%..........50%.........60%..........70%..........80%..........90%..........100%
[2022-06-21T21:28:20.196Z]     amazon-ebs:
[2022-06-21T21:28:20.196Z]     amazon-ebs: Welcome to Gradle 6.7.1!
[2022-06-21T21:28:20.196Z]     amazon-ebs:
[2022-06-21T21:28:20.196Z]     amazon-ebs: Here are the highlights of this release:
[2022-06-21T21:28:20.196Z]     amazon-ebs:  - File system watching is ready for production use
[2022-06-21T21:28:20.196Z]     amazon-ebs:  - Declare the version of Java your build requires
[2022-06-21T21:28:20.196Z]     amazon-ebs:  - Java 15 support
[2022-06-21T21:28:20.196Z]     amazon-ebs:
[2022-06-21T21:28:20.196Z]     amazon-ebs: For more details see https://docs.gradle.org/6.7.1/release-notes.html
[2022-06-21T21:28:20.196Z]     amazon-ebs:
[2022-06-21T21:28:20.196Z]     amazon-ebs: WARNING: An illegal reflective access operation has occurred
[2022-06-21T21:28:20.196Z]     amazon-ebs: WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/home/jenkins/.gradle/wrapper/dists/gradle-6.7.1-bin/bwlcbys1h7rz3272sye1xwiv6/gradle-6.7.1/lib/groovy-all-1.3-2.5.12.jar) to method java.lang.Object.finalize()
[2022-06-21T21:28:20.196Z]     amazon-ebs: WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
[2022-06-21T21:28:20.196Z]     amazon-ebs: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[2022-06-21T21:28:20.196Z]     amazon-ebs: WARNING: All illegal access operations will be denied in a future release
[2022-06-21T21:28:20.196Z]     amazon-ebs: > Task :clean
[2022-06-21T21:28:20.196Z]     amazon-ebs: > Task :compileJava FAILED
[2022-06-21T21:28:20.196Z]     amazon-ebs:
[2022-06-21T21:28:20.196Z]     amazon-ebs: FAILURE: Build failed with an exception.
[2022-06-21T21:28:20.196Z]     amazon-ebs:
[2022-06-21T21:28:20.196Z]     amazon-ebs: * What went wrong:
[2022-06-21T21:28:20.196Z]     amazon-ebs: Execution failed for task ':compileJava'.
[2022-06-21T21:28:20.196Z]     amazon-ebs: > Could not resolve all files for configuration ':compileClasspath'.
[2022-06-21T21:28:20.196Z]     amazon-ebs:    > Could not resolve com.atlassian.security:atlassian-cookie-tools:3.2.14.
[2022-06-21T21:28:20.196Z]     amazon-ebs:      Required by:
[2022-06-21T21:28:20.196Z]     amazon-ebs:          project :
[2022-06-21T21:28:20.196Z]     amazon-ebs:       > Could not resolve com.atlassian.security:atlassian-cookie-tools:3.2.14.
[2022-06-21T21:28:20.196Z]     amazon-ebs:          > Could not parse POM https://nexus-ods.ocp.odsbox.lan/repository/atlassian_public/com/atlassian/security/atlassian-cookie-tools/3.2.14/atlassian-cookie-tools-3.2.14.pom
[2022-06-21T21:28:20.196Z]     amazon-ebs:             > Could not resolve com.atlassian.security:atlassian-security:3.2.14.
[2022-06-21T21:28:20.196Z]     amazon-ebs:                > Could not resolve com.atlassian.security:atlassian-security:3.2.14.
[2022-06-21T21:28:20.196Z]     amazon-ebs:                   > Could not parse POM https://nexus-ods.ocp.odsbox.lan/repository/atlassian_public/com/atlassian/security/atlassian-security/3.2.14/atlassian-security-3.2.14.pom
[2022-06-21T21:28:20.197Z]     amazon-ebs:                      > Could not find com.atlassian.platform:platform:3.5.2.
[2022-06-21T21:28:20.197Z]     amazon-ebs:    > Could not find com.atlassian.crowd:crowd-integration-springsecurity:1000.82.0.
[2022-06-21T21:28:20.197Z]     amazon-ebs:      Required by:
[2022-06-21T21:28:20.197Z]     amazon-ebs:          project :
[2022-06-21T21:28:20.197Z]     amazon-ebs:
[2022-06-21T21:28:20.197Z]     amazon-ebs: * Try:
[2022-06-21T21:28:20.197Z]     amazon-ebs: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[2022-06-21T21:28:20.197Z]     amazon-ebs:
[2022-06-21T21:28:20.197Z]     amazon-ebs: * Exception is:
[2022-06-21T21:28:20.197Z]     amazon-ebs: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':compileJava'.

....

[2022-06-21T21:28:20.231Z]     amazon-ebs: Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.atlassian.platform:platform:3.5.2.
[2022-06-21T21:28:20.231Z]     amazon-ebs: Cause 2: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.atlassian.crowd:crowd-integration-springsecurity:1000.82.0.
[2022-06-21T21:28:20.231Z]     amazon-ebs: Required by:
[2022-06-21T21:28:20.231Z]     amazon-ebs:     project :
[2022-06-21T21:28:20.231Z]     amazon-ebs:
[2022-06-21T21:28:20.231Z]     amazon-ebs:
[2022-06-21T21:28:20.231Z]     amazon-ebs: * Get more help at https://help.gradle.org
[2022-06-21T21:28:20.231Z]     amazon-ebs:
[2022-06-21T21:28:20.231Z]     amazon-ebs: BUILD FAILED in 1m 34s
[2022-06-21T21:28:20.231Z]     amazon-ebs: 2 actionable tasks: 2 executed
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] error
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] }
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] // withEnv
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] }
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] // stage
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] }
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] // wrap
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] stage
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] { (odsPipeline error)
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] echo
[2022-06-21T21:28:20.231Z]     amazon-ebs: WARN: [provapp] ***** Finished ODS Pipeline for provapp (with error) ***** (took 129622 ms)
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] echo
[2022-06-21T21:28:20.231Z]     amazon-ebs: WARN: Error: hudson.AbortException: Build failed!
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] withCredentials
[2022-06-21T21:28:20.231Z]     amazon-ebs: Masking supported pattern matches of $USERNAME or $TOKEN
[2022-06-21T21:28:20.231Z]     amazon-ebs: [Pipeline] {
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] sh
[2022-06-21T21:28:20.232Z]     amazon-ebs: WARNING: Unknown parameter(s) found for class type 'org.jenkinsci.plugins.workflow.steps.durable_task.ShellStep': label
[2022-06-21T21:28:20.232Z]     amazon-ebs: + curl --fail -sS --request POST --header 'Authorization: Bearer ****' --header 'Content-Type: application/json' --data '{"state":"FAILED","key":"e11192f4","name":"e11192f4","url":"https://jenkins-unitt-cd.ocp.odsbox.lan/job/unitt-cd/job/unitt-cd-run-unitt-provapp-unitt-experimental/1/"}' http://bitbucket.odsbox.lan:7990/rest/build-status/1.0/commits/e11192f427a57c0732b2b2c5c9192f07f071b901
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] }
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] // withCredentials
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] emailext
[2022-06-21T21:28:20.232Z]     amazon-ebs: An attempt to send an e-mail to empty list of recipients, ignored.
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] }
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] // stage
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] echo
[2022-06-21T21:28:20.232Z]     amazon-ebs: Collecting test results, if available ...
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] fileExists
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] sh
[2022-06-21T21:28:20.232Z]     amazon-ebs: WARNING: Unknown parameter(s) found for class type 'org.jenkinsci.plugins.workflow.steps.durable_task.ShellStep': label
[2022-06-21T21:28:20.232Z]     amazon-ebs: + mkdir -p build/test-results/test
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] dir
[2022-06-21T21:28:20.232Z]     amazon-ebs: Running in /tmp/workspace/unitt-cd/unitt-cd-run-unitt-provapp-unitt-experimental/build/test-results/test
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] {
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] findFiles
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] }
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] // dir
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] echo
[2022-06-21T21:28:20.232Z]     amazon-ebs: No xUnit results for stashing
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] }
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] // node
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] }
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] // podTemplate
[2022-06-21T21:28:20.232Z]     amazon-ebs: [Pipeline] End of Pipeline
[2022-06-21T21:28:20.232Z]     amazon-ebs: ERROR: Build failed!
[2022-06-21T21:28:20.232Z]     amazon-ebs: Finished: FAILURE
[2022-06-21T21:28:20.232Z]     amazon-ebs: build pipeline run for provapp returned:
[2022-06-21T21:28:20.232Z]     amazon-ebs: [
[2022-06-21T21:28:20.232Z]     amazon-ebs:   {
[2022-06-21T21:28:20.232Z]     amazon-ebs:     "stage": "odsPipeline start",
[2022-06-21T21:28:20.232Z]     amazon-ebs:     "status": "SUCCESS"
[2022-06-21T21:28:20.232Z]     amazon-ebs:   },
[2022-06-21T21:28:20.232Z]     amazon-ebs:   {
[2022-06-21T21:28:20.232Z]     amazon-ebs:     "stage": "Build and Unit Test",
[2022-06-21T21:28:20.232Z]     amazon-ebs:     "status": "FAILED"
[2022-06-21T21:28:20.232Z]     amazon-ebs:   },
[2022-06-21T21:28:20.233Z]     amazon-ebs:   {
[2022-06-21T21:28:20.233Z]     amazon-ebs:     "stage": "odsPipeline error",
[2022-06-21T21:28:20.233Z]     amazon-ebs:     "status": "FAILED"
[2022-06-21T21:28:20.233Z]     amazon-ebs:   }
[2022-06-21T21:28:20.233Z]     amazon-ebs: ]

The whole log:
jenkins-build-log.txt

Additional context
Could not find com.atlassian.platform:platform:3.5.2
https://community.atlassian.com/t5/Jira-questions/Could-not-find-com-atlassian-platform-platform-3-5-2/qaq-p/1843477

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with ./gradlew clean build --stacktrace --no-daemon and inspect the provisioning app's Gradle dependency configuration for the missing Atlassian artifacts. The issue is done when the provisioning app compiles successfully and the reported dependency-resolution failure no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.