Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Add support for mac and artifactory oss#6

Open
cdelashmutt-pivotal wants to merge 5 commits intovmware-archive:masterfrom
cdelashmutt-pivotal:add-support-for-mac-and-artifactory-oss
Open

Add support for mac and artifactory oss#6
cdelashmutt-pivotal wants to merge 5 commits intovmware-archive:masterfrom
cdelashmutt-pivotal:add-support-for-mac-and-artifactory-oss

Conversation

@cdelashmutt-pivotal
Copy link

Summary

A small change to the citytest-deploy job script to allow for running a local config of Jenkins+Artifactory OSS, and support for a Mac hosted Jenkins install.

Artifactory OSS Support

The big change here is shifting from using the Artifactory plugin in the citytest-deploy job to using the Artifact Resolver plugin which allows us to resolve arbitrary artifacts without requiring Artifactory Pro APIs. This plugin uses Maven under the covers, so it use that to resolve artifacts. This allows us to use a remote Artifactory Pro trial account, or a locally installed Artifactory OSS instance to store and retrieve.

The citytest job remains unchanged as publishing to Artifactory using the Jenkins Artifactory plugin does not require Artifactory Pro.

Make variable parts of the script more DRY

I've also added in some variables to allow "one spot" changing of variables like CF UAA user id, CF Org, CF Space, CF App Domain, and CF API Endpoint right at the top of the script.

MacOS Jenkins Slaves

Finally, I've also added in some logic to the script to detect when a Jenkin slave is running on a Mac, and to download the Mac pkg for the CF CLI, and then extract that into the workspace to use for the rest of the install. The rest of the script will fall back to assuming 64-bit Linux if a Mac is not detected, so it should behave exactly the same as it used to on non-OSX platforms.

This commit allows you to use the CI process against an Artifactory Pro
or OSS install.  It also makes it easier to make changes to the user name,
org, space, and domain in one spot in the citytest-deploy job.  Also,
support for running Jenkins on the Mac has been added since wget isn't
installed by default.
Putting the uniquetoken value into a variable so that it can be changed
in one spot
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant