mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Set git username and API token via settings.xml file.
This commit is contained in:
@@ -45,6 +45,11 @@
|
||||
<username>${env.DOCKERHUB_USERNAME}</username>
|
||||
<password>${env.DOCKERHUB_PASSWORD}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>github</id>
|
||||
<username>${env.GITHUB_USERNAME}</username>
|
||||
<password>${env.GITHUB_API_TOKEN}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>alfresco-internal</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
|
@@ -23,8 +23,7 @@ if [ -z ${RELEASE_VERSION} ] || [ -z ${DEVELOPMENT_VERSION} ];
|
||||
exit 1
|
||||
else
|
||||
mvn --batch-mode \
|
||||
-Dusername="${GITHUB_USERNAME}" \
|
||||
-Dpassword="${GITHUB_API_TOKEN}" \
|
||||
-settings .travis.settings.xml \
|
||||
-DreleaseVersion=${RELEASE_VERSION} \
|
||||
-DdevelopmentVersion=${DEVELOPMENT_VERSION} \
|
||||
-DskipTests -D${release_type} -DuseReleaseProfile=false \
|
||||
|
Reference in New Issue
Block a user