Nexus, Jfrog mainly support local repositoriesdocker run --rm \
-u root \
-v /data/conf/config.yaml:/app/config.yaml \
# Mount migration list when needed (configured in config.yaml's includePackageVersion)
-v /data/conf/config-maven-includePackageName.txt:/app/config-maven-includePackageName.txt \
# Mount exclusion list when needed (configured in config.yaml's excludePackageVersion)
-v /data/conf/config-maven-excludePackageName.txt:/app/config-maven-excludePackageName.txt \
# Log directory
-v $(pwd):/app/log \
docker.cnb.cool/cnb/plugins/cnbcool/artifact-migrate:latest
Parameters:
docker run --rm \
-u root
-e ARTIFACT_MIGRATE="parameter-mode" \
-e ARTIFACT_TYPE="maven" \
-e SRC_REGISTRY_TYPE="coding" \
-e SRC_INCLUDE_PACKAGE="org.xxx:1.0.0|org.test" \
-e SRC_EXCLUDE_PACKAGE="" \
-e SRC_REGISTRY_URL="http://example.com" \
-e SRC_REGISTRY_USERNAME="user" \
-e SRC_REGISTRY_PASSWORD="pass" \
-e TAR_REGISTRY_URL="http://cnb.cool/repo" \
-e TAR_REGISTRY_PASSWORD="cnbpass" \
-v $(pwd):/app/log \
docker.cnb.cool/cnb/plugins/cnbcool/artifact-migrate:latest
main:
push:
- stages:
- name: Artifact Migration
image: docker.cnb.cool/cnb/plugins/cnbcool/artifact-migrate:latest
artifactory:
maven:
- src:
type: coding # jfrog/nexus/coding/codeup
includePackageVersion: # Packages to include (regex or file)
excludePackageVersion: # Packages to exclude
url: http://example.com/repo
username: user
password: pass
token: # For Codeup only
target:
url: http://cnb.cool/target
password: cnbpass
npm:
- src:
type: coding
includePackageVersion: ^coding # Regex example
excludePackageVersion: /app/exclude.txt # File example
url: http://example.com/npm
username: npm-user
password: npm-pass
target:
url: http://cnb.cool/npm
password: cnbpass
org.xxx:1.0.0
org.test