christian-posta / ceposta-devops-ose

Complete Continuous Delivery demo with docker, jboss fuse, gerrit, nexus, gitlab, openshift
48 stars 24 forks source link

Compare maven settings of Jenkins (christian vs fabric8) #21

Open cmoulliard opened 9 years ago

cmoulliard commented 9 years ago

Christian

...
        <server>
            <id>nexus.internal.repo</id>
            <username>admin</username>
            <password>admin123</password>
        </server>
        <server>
            <id>fabric8.upload.repo</id>
            <username>__FABRIC8_REPO_USERNAME__</username>
            <password>__FABRIC8_REPO_PASSWORD__</password>
        </server>
    </servers>

...
<profile>
            <id>nexus</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>nexus-repo</id>
                    <name>Internal Nexus</name>
                    <url>http://__NEXUS_IP__:__NEXUS_PORT__/nexus/content/groups/public/</url>
                    <layout>default</layout>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>nexus-repo</id>
                    <url>http://__NEXUS_IP__:__NEXUS_PORT__/nexus/content/groups/public/</url>
                    <releases><enabled>true</enabled></releases>
                    <snapshots><enabled>true</enabled></snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
...

Fabric8

<settings>
  <!--This sends everything else to /public -->
  <mirrors>
    <mirror>
      <id>nexus</id>
      <mirrorOf>external:*</mirrorOf>
      <url>http://${env.NEXUS_SERVICE_HOST}:${env.NEXUS_SERVICE_PORT}/content/groups/public</url>
    </mirror>
  </mirrors>

  <!-- lets disable the download progress indicator that fills up logs -->
  <interactiveMode>false</interactiveMode>

<servers>
  <server>
    <id>local-nexus</id>
    <username>${env.NEXUS_USERNAME}</username>
    <password>${env.NEXUS_PASSWORD}</password>
  </server>
  <server>
    <id>nexus</id>
    <username>${env.NEXUS_USERNAME}</username>
    <password>${env.NEXUS_PASSWORD}</password>
  </server>
  <server>
    <id>docker-registry</id>
    <username>${env.DOCKER_REGISTRY_USERNAME}</username>
    <password>${env.DOCKER_REGISTRY_PASSWORD}</password>
  </server>
</servers>

  <profiles>
    <profile>
      <id>nexus</id>
      <properties>
        <altDeploymentRepository>local-nexus::default::http://${env.NEXUS_SERVICE_HOST}:${env.NEXUS_SERVICE_PORT}/content/repositories/staging/</altDeploymentRepository>
        <altReleaseDeploymentRepository>local-nexus::default::http://${env.NEXUS_SERVICE_HOST}:${env.NEXUS_SERVICE_PORT}/content/repositories/staging/</altReleaseDeploymentRepository>
        <altSnapshotDeploymentRepository>local-nexus::default::http://${env.NEXUS_SERVICE_HOST}:${env.NEXUS_SERVICE_PORT}/content/repositories/snapshots/</altSnapshotDeploymentRepository>

      </properties>

      <!--Enable snapshots for the built in central repo to direct -->
      <!--all requests to nexus via the mirror -->
      <repositories>
        <repository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
      </repositories>
     <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <!--make the profile active all the time -->
    <activeProfile>nexus</activeProfile>
  </activeProfiles>
</settings>
christian-posta commented 9 years ago

Yah, we can take a look. out of the box, the settings.xml point to the nexus repo, so that's good. some of the other stuff i had was for fabric8 v1 stuff... will evaluate this

cmoulliard commented 9 years ago

@christian-posta : So we can use the file of fabric8/jenkins ?