<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pipeline on Jose Castrillo</title>
    <link>https://jose.castrillo.eu/tags/pipeline/</link>
    <description>Recent content in Pipeline on Jose Castrillo</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Sat, 15 Jul 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://jose.castrillo.eu/tags/pipeline/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Trigger pipelines by using the API</title>
      <link>https://jose.castrillo.eu/post/pipeline-part1/</link>
      <pubDate>Sat, 15 Jul 2023 00:00:00 +0000</pubDate>
      <guid>https://jose.castrillo.eu/post/pipeline-part1/</guid>
      <description>&lt;p&gt;When you join a new project, company, customer, etc. (you&amp;rsquo;re still in the onboarding phase 😅), meanwhile you may find that you need to make a few changes to get your team&amp;rsquo;s production pipelines up and running. In this case, you can call an API trigger from one project to another (this is just a example).&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve been in the situation described above before, and it was how I discovered this amazing feature in GitLab.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fixing tags on Azure invoices</title>
      <link>https://jose.castrillo.eu/post/python-panda-invoices/</link>
      <pubDate>Tue, 21 Feb 2023 00:00:00 +0000</pubDate>
      <guid>https://jose.castrillo.eu/post/python-panda-invoices/</guid>
      <description>&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://castrillo.gitlab.io/figaro/pandas.gif&#34; alt=&#34;&#34;  /&gt;
&lt;/p&gt;
&lt;p&gt;Merging two CSV files using Pandas in Python 3 on Linux is a quick and easy process that can save you a lot of time and effort, however in my case I used other script to extract specific tag values from a CSV file, converts them into a JSON object, and writes them to a new CSV file, in that way I provided a workaround for those tags wanted.&lt;/p&gt;</description>
    </item>
    <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>
    <item>
      <title>Trigger pipelines in Gitlab</title>
      <link>https://jose.castrillo.eu/post/trigger-pipeline-gitlab/</link>
      <pubDate>Thu, 10 Nov 2022 00:00:00 +0000</pubDate>
      <guid>https://jose.castrillo.eu/post/trigger-pipeline-gitlab/</guid>
      <description>&lt;p&gt;The following post is example of how to activate and use Trigger pipeline by API the official documentation over &lt;a href=&#34;https://docs.gitlab.com/ee/ci/triggers/&#34;&gt;here&lt;/a&gt; as it mentioned is can be use &lt;em&gt;&amp;ldquo;to trigger a pipeline for a specific branch or tag&amp;rdquo;&lt;/em&gt;; for our example I use it to activate a pipeline into specific branch.&lt;/p&gt;
&lt;p&gt;Steps:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;repoA will be the main one where the pipeline trigger it will be activate&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;From &lt;strong&gt;repoA&lt;/strong&gt; go to Settings-CI/CD-Pipeline triggers&lt;/li&gt;
&lt;li&gt;Click on &lt;em&gt;&amp;ldquo;add trigger&amp;rdquo;&lt;/em&gt; copy your token&lt;/li&gt;
&lt;li&gt;From &lt;strong&gt;repoB&lt;/strong&gt; that will be our caller of the &lt;strong&gt;repoA&lt;/strong&gt; pipeline create a variable where you can paste the token.&lt;/li&gt;
&lt;li&gt;Finally into your pipeline on &lt;strong&gt;repoB&lt;/strong&gt; you can add something like below:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The best part is that you can reference to specific branch &lt;strong&gt;ref=&amp;quot;&amp;lt;branch_name&amp;gt;&amp;quot;&lt;/strong&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
