Skip to content

Commit

Permalink
Add internal repository
Browse files Browse the repository at this point in the history
  • Loading branch information
gflores-jahia committed Aug 1, 2023
1 parent feaf84c commit a372737
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/assets/provisioning.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
- addMavenRepository: 'https://store.jahia.com/nexus/content/repositories/jahia-public-app-store@id=JahiaStore'
- addMavenRepository: 'https://devtools.jahia.com/nexus/content/groups/public/@snapshots@noreleases@id=JahiaPublicSnapshots'
- addMavenRepository: 'https://devtools.jahia.com/nexus/content/groups/internal@id=jahia-internal@snapshots'
username: ${env:NEXUS_USERNAME}
password: ${env:NEXUS_PASSWORD}

- installBundle:
- 'mvn:org.jahia.modules/press/3.1.0'
Expand Down Expand Up @@ -36,5 +39,5 @@

- executeScript: "script-01-create-categories.groovy"

- uninstallBundle:
- uninstallBundle:
- "org.jahia.modules/content-editor"
78 changes: 78 additions & 0 deletions tests/maven.settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0"?>
<settings>
<profiles>
<profile>
<id>jahia-internal-repository</id>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>jahia-internal</id>
<name>Jahia Internal Repository</name>
<url>${env.NEXUS_INTERNAL_URL}</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.host.url>${env.SONAR_URL}</sonar.host.url>
<sonar.login>${env.SONAR_TOKEN}</sonar.login>
</properties>
</profile>
</profiles>

<activeProfiles>
<activeProfile>jahia-internal-repository</activeProfile>
</activeProfiles>

<servers>
<server>
<id>jahia-enterprise</id>
<username>${env.NEXUS_USERNAME}</username>
<password>${env.NEXUS_PASSWORD}</password>
</server>
<server>
<id>jahia-snapshots</id>
<username>${env.NEXUS_USERNAME}</username>
<password>${env.NEXUS_PASSWORD}</password>
</server>
<server>
<id>jahia-internal</id>
<username>${env.NEXUS_USERNAME}</username>
<password>${env.NEXUS_PASSWORD}</password>
</server>
<server>
<id>jahia-enterprise-snapshots</id>
<username>${env.NEXUS_USERNAME}</username>
<password>${env.NEXUS_PASSWORD}</password>
</server>
<server>
<id>jahia-enterprise-releases</id>
<username>${env.NEXUS_USERNAME}</username>
<password>${env.NEXUS_PASSWORD}</password>
</server>
<server>
<id>staging-repository</id>
<username>${env.NEXUS_USERNAME}</username>
<password>${env.NEXUS_PASSWORD}</password>
</server>
</servers>
</settings>

0 comments on commit a372737

Please sign in to comment.