Open sennerholm opened 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>
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>
https://coreos.com/ intressant docker platta
Provar lite go med Goldenzone https://bitbucket.org/cagcontactor/goldenzone.git
Versionshantera med: http://semver.org/