Need Help?
		PIPELINES 
		ENVIRONMENTS 
		AGENTS 
		ADMIN 
Errors: 1

Administration
		Pipelines 
		Templates 
		Config XML 
		Server Configuration 
		User Summary 
		OAuth Clients 
		Backup 
		Plugins 
		Package Repositories 
Configuration File
/User­s/sar­cot/L­ibrar­y/App­licat­ion S­uppor­t/Go ­Serve­r/con­fig/c­ruise­-conf­ig.xm­l
Configuration File Path:
Last modified: 30 minutes ago by anonymous
EDIT
<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion="88">
  <server artifactsdir="artifacts" agentAutoRegisterKey="162b29a4-25e5-4294-afa4-9dcad3873a56" commandRepositoryLocation="default" serverId="66e8643a-319b-4c14-bf61-fd1098a5dbb8" />
  <repositories>
    <repository id="c6e3742a-6965-4aff-be24-f61313c2eb01" name="repo_latest">
      <pluginConfiguration id="Docker" version="1" />
      <configuration>
        <property>
          <key>REGISTRY</key>
          <value>https://registry.gitlab.com</value>
        </property>
      </configuration>
      <packages>
        <package id="fd72d2ec-ec5e-4be6-845a-09e10d1d77c8" name="pkg2">
          <configuration>
            <property>
              <key>REPOSITORY</key>
              <value>registry.gitlab.com/xp1/iuh-api</value>
            </property>
            <property>
              <key>TAG</key>
              <value>latest</value>
            </property>
          </configuration>
        </package>
      </packages>
    </repository>
  </repositories>
  <pipelines group="Training">
    <pipeline name="first_pipeline">
      <materials>
        <git url="git@gitlab.com:xp1/iuh-api.git" branch="dev" />
      </materials>
      <stage name="BuildAndpush” cleanWorkingDir="true">
        <jobs>
          <job name="first_job">
            <tasks>
              <exec command="/bin/bash">
                <arg>-c</arg>
                <arg>sudo docker build -t registry.gitlab.com/xp1/iuh-api:latest .</arg>
                <runif status="passed" />
              </exec>
              <exec command="/bin/bash">
                <arg>-c</arg>
                <arg>sudo  /usr/local/bin/docker push -t registry.gitlab.com/mc1/app1:latest</arg>
                <runif status="passed" />
              </exec>
            </tasks>
          </job>
        </jobs>
      </stage>
    </pipeline>
  <pipeline name="deploy">
      <materials>
        <package ref="fd72d2ec-ec5e-4be6-845a-09e10d1d77c8" />
      </materials>
      <stage name="deploy" cleanWorkingDir="true">
        <jobs>
          <job name="pull">
            <tasks>
              <task>
                <pluginConfiguration id="script-executor" version="1" />
                <configuration>
                  <property>
                    <key>script</key>
                    <value>docker pull registry.gitlab.com/mc1/app1:latest</value>
                  </property>
                </configuration>
                <runif status="passed" />
              </task>
            </tasks>
          </job>
        </jobs>
      </stage>
    </pipeline>

  </pipelines>
  <environments>
    <environment name="Development">
      <agents>
        <physical uuid="2ae66ba1-e3bc-4e35-9342-bcae208b8381" />
      </agents>
      <pipelines>
        <pipeline name="first_pipeline" />
      </pipelines>
    </environment>
  </environments>
  <agents>
    <agent hostname="Shashanks-MacBook-Pro.local" ipaddress="127.0.0.1" uuid="2ae66ba1-e3bc-4e35-9342-bcae208b8381" />
  </agents>
</cruise>