<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Artifacts on Jose Castrillo</title>
    <link>https://jose.castrillo.eu/tags/artifacts/</link>
    <description>Recent content in Artifacts on Jose Castrillo</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Tue, 20 Dec 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://jose.castrillo.eu/tags/artifacts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cloining a repo and setting up as artifact</title>
      <link>https://jose.castrillo.eu/post/clone-pipeline-gitlab/</link>
      <pubDate>Tue, 20 Dec 2022 00:00:00 +0000</pubDate>
      <guid>https://jose.castrillo.eu/post/clone-pipeline-gitlab/</guid>
      <description>&lt;p&gt;On this post I will give you an example of how to clone a repo into your pipeline and use it for other jobs.&lt;/p&gt;
&lt;p&gt;As you can read from Gitlab official &lt;a href=&#34;https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html&#34;&gt;documentation&lt;/a&gt; artifact can output an archive of files/directories. I set the following example:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  artifacts:
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    paths:
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      - &amp;lt;project_name&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    exclude:
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      - &amp;lt;project_name&amp;gt;/.git/**/*
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    expire_in: &lt;span class=&#34;m&#34;&gt;60&lt;/span&gt; seconds
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;We need to call the &lt;em&gt;artifacts&lt;/em&gt; by using &amp;ldquo;artifacts&amp;rdquo; keyboard in the pipeline, in this example &lt;em&gt;paths&lt;/em&gt; keyboard which files/directories add into artifacts.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
