Skip to content

Commit

Permalink
add artifact files
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Jul 19, 2024
1 parent ad656d2 commit 388bec3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
13 changes: 13 additions & 0 deletions repository/artifacts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"artifacts": {
"acs23": [
{
"name": "alfresco-content-services-distribution",
"version": "23.2.2",
"path": "repository",
"classifier": ".zip",
"group": "org.alfresco"
}
]
}
}
5 changes: 3 additions & 2 deletions scripts/fetch-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ cd ${REPO_ROOT}/..

for i in $(find . -name artifacts.json -mindepth 2); do
for j in $(jq -r ".artifacts.acs${INDEX_KEY} | keys | .[]" $i); do
ARTIFACT_BASEURL="https://nexus.alfresco.com/nexus/service/local/repositories/enterprise-releases/content"
ARTIFACT_NAME=$(jq -r ".artifacts.acs${INDEX_KEY}[$j].name" $i)
ARTIFACT_VERSION=$(jq -r ".artifacts.acs${INDEX_KEY}[$j].version" $i)
ARTIFACT_EXT=$(jq -r ".artifacts.acs${INDEX_KEY}[$j].classifier" $i)
ARTIFACT_GROUP=$(jq -r ".artifacts.acs${INDEX_KEY}[$j].group" $i)
ARTIFACT_PATH=$(jq -r ".artifacts.acs${INDEX_KEY}[$j].path" $i)
echo "Downloading $ARTIFACT_GROUP:$ARTIFACT_NAME $ARTIFACT_VERSION from Nexus"
wget "https://nexus.alfresco.com/nexus/service/local/repositories/enterprise-releases/content/${ARTIFACT_GROUP/\./\/}/${ARTIFACT_NAME}/${ARTIFACT_VERSION}/${ARTIFACT_NAME}-${ARTIFACT_VERSION}${ARTIFACT_EXT}" \
echo "Downloading $ARTIFACT_GROUP:$ARTIFACT_NAME $ARTIFACT_VERSION from $ARTIFACT_BASEURL"
wget "${ARTIFACT_BASEURL}/${ARTIFACT_GROUP/\./\/}/${ARTIFACT_NAME}/${ARTIFACT_VERSION}/${ARTIFACT_NAME}-${ARTIFACT_VERSION}${ARTIFACT_EXT}" \
-O ${ARTIFACT_PATH}/${ARTIFACT_NAME}-${ARTIFACT_VERSION}${ARTIFACT_EXT}
done
done
20 changes: 20 additions & 0 deletions search/enterprise/common/artifacts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"artifacts": {
"acs23": [
{
"name": "alfresco-elasticsearch-live-indexing-metadata",
"version": "4.0.1",
"path": "search/enterprise/common",
"classifier": "-app.jar",
"group": "org.alfresco"
},
{
"name": "alfresco-elasticsearch-live-indexing-path",
"version": "4.0.1",
"path": "search/enterprise/common",
"classifier": "-app.jar",
"group": "org.alfresco"
}
]
}
}

0 comments on commit 388bec3

Please sign in to comment.