AvegaGroup / deploymentPipeline

deployment pipeline at AgilaSverige
5 stars 4 forks source link

Anteckningar från 20140410 #31

Open sennerholm opened 10 years ago

sennerholm commented 10 years ago

Provar lite go med Goldenzone https://bitbucket.org/cagcontactor/goldenzone.git

Versionshantera med: http://semver.org/

sennerholm commented 10 years ago

Go xml conf att importera i go:

 <pipelines group="Golden_Zone">
    <pipeline name="Build" isLocked="false">
      <environmentvariables>
        <variable name="MAJORMINORVERSION">
          <value>1.0</value>
        </variable>
      </environmentvariables>
      <materials>
        <git url="https://bitbucket.org/cagcontactor/goldenzone.git" />
      </materials>
      <stage name="Set_version">
        <jobs>
          <job name="mvn_set_version">
            <tasks>
              <exec command="mvn">
                <arg>versions:set</arg>
                <arg>-DnewVersion=${env.MAJORMINORVERSION}.${env.GO_PIPELINE_COUNTER}</arg>
                <runif status="passed" />
              </exec>
            </tasks>
          </job>
        </jobs>
      </stage>
      <stage name="Build" fetchMaterials="false">
        <jobs>
          <job name="defaultJob">
            <tasks>
              <exec command="mvn">
                <arg>clean</arg>
                <arg>deploy</arg>
                <arg>-B</arg>
                <arg>-Drepo.id=ci-releases</arg>
                <arg>-Drepo.url=http://artifactory:8081/artifactory/libs-release-local</arg>
                <runif status="passed" />
              </exec>
            </tasks>
          </job>
        </jobs>
      </stage>
    </pipeline>
sennerholm commented 10 years ago

cat /var/go/.m2/settings.xml

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <pluginGroups>
  </pluginGroups>

  <proxies>
  </proxies>

  <servers>
    <server>
      <id>ci-releases</id>
      <username>admin</username>
      <password>password</password>
    </server>
  </servers>

  <mirrors>
  </mirrors>

  <profiles>
  </profiles>

</settings>
sennerholm commented 10 years ago

https://coreos.com/ intressant docker platta