Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Configuration as code automation for Nexus Repository Manager v3.

License

NotificationsYou must be signed in to change notification settings

samrocketman/nexus3-config-as-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Tested against Nexus Repository Manager OSS 3.10.0-04

This project contains scripts and standards for configuration as code for Nexus.This allows Nexus configuration changes to be reviewed in pull requests andavoids the need of granting anybody admin access to Nexus.

Configuration as Code

Organization of this repository

  • functions/ - a directory of Nexus scripts meant to be uploaded to theNexusScript API. A script is what is called a "function" in thisrepository and will be referenced from now on as a function.
  • scripts/ - Local scripts designed to be run from automation or a localmachine to interact with Nexus.

Executing Configuration As Code

All configuration as code scripts are meant to be run via theNexus ScriptAPI../scripts/upload_function.py has beenprovided to perform the following actions:

  • Upload functions to the Nexus Script API.
  • Delete functions from the Nexus Script API.
  • Execute functions available in the Nexus Script API. Option to submit data asan argument to the function is also possible.

Examples:

# Delete all default repositories and blob stores in Nexus./scripts/upload_function.py -rf ./functions/deleteAllRepositoriesAndBlobstores.groovy# Configure new repositories and blob stores./scripts/upload_function.py -rf ./functions/repositoryConfiguration.groovy -d ./examples/repository.json

Seeadditional USAGE for more examples and options.

Backup and Restore Guide

For backing up and restoring a production Nexus installation, refer to theBackup and Restore Guide.

License

ASL v2

Copyright (c) 2018 Sam Gleske - https://github.com/samrocketman/nexus3-config-as-codeLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at    http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp