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

Pass Artifactory details to Test jobs #3114

Merged

Conversation

AdamBrousseau
Copy link
Contributor

  • Minimally we need to pass ARTIFACTORY_SERVER
    to the test jobs in order for them to upload
    test artifacts to Artifactory.
  • Write the rest of the Artifactory variables
    to the build env for future use.
  • We have the option to pass more of these
    variables in the future if we wish.

See

Signed-off-by: Adam Brousseau [email protected]

- Minimally we need to pass ARTIFACTORY_SERVER
  to the test jobs in order for them to upload
  test artifacts to Artifactory.
- Write the rest of the Artifactory variables
  to the build env for future use.
- We have the option to pass more of these
  variables in the future if we wish.

See
- adoptium/aqa-tests#591
- adoptium/aqa-tests#561
- eclipse-openj9#1017
[skip ci]

Signed-off-by: Adam Brousseau <[email protected]>
@AdamBrousseau
Copy link
Contributor Author

@jdekonin and @smlambert for review

ARTIFACTORY_SERVER = VARIABLES.artifactory_server
ARTIFACTORY_REPO = VARIABLES.artifactory_repo
env.ARTIFACTORY_SERVER = VARIABLES.artifactory_server
env.ARTIFACTORY_REPO = VARIABLES.artifactory_repo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because these are set in the Build job, in order to sniff it in the upstream pipeline it has to be written to the environment. The only one we need for this change is the server but the test code will accept repo, num artifacts as well. See PR in description.

@smlambert smlambert merged commit 51829e6 into eclipse-openj9:master Oct 3, 2018
@AdamBrousseau
Copy link
Contributor Author

Pretty sure this broke the builds. Adding env. "defines" the ARTIFACTORY_SERVER causing other ifs to be executed even though the value is null
https://ci.eclipse.org/openj9/job/Build-JDK8-linux_390-64_cmprssptrs/725/consoleFull

Using artifactory server/repo: null / null
[Pipeline] echo
Using artifactory credentials: null
[Pipeline] echo
Keeping 'null' artifacts

Previously this would not print because we didn't enter the if

AdamBrousseau added a commit to AdamBrousseau/openj9 that referenced this pull request Oct 3, 2018
AdamBrousseau added a commit to AdamBrousseau/openj9 that referenced this pull request Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants