<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abderrahim fazazi on Medium]]></title>
        <description><![CDATA[Stories by Abderrahim fazazi on Medium]]></description>
        <link>https://medium.com/@abderrahimfazazi?source=rss-136ca40a75cc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*F8dr4w1-1q8hsSiO</url>
            <title>Stories by Abderrahim fazazi on Medium</title>
            <link>https://medium.com/@abderrahimfazazi?source=rss-136ca40a75cc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:06:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abderrahimfazazi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From SaaS to NaaS: When Capitalism Sells You Literally Nothing]]></title>
            <link>https://medium.com/@abderrahimfazazi/from-saas-to-naas-when-capitalism-sells-you-literally-nothing-69d59d8ac5b7?source=rss-136ca40a75cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/69d59d8ac5b7</guid>
            <category><![CDATA[capitalism]]></category>
            <category><![CDATA[absurd]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[information-technology]]></category>
            <dc:creator><![CDATA[Abderrahim fazazi]]></dc:creator>
            <pubDate>Sun, 10 Aug 2025 20:27:48 GMT</pubDate>
            <atom:updated>2025-08-10T20:27:48.040Z</atom:updated>
            <content:encoded><![CDATA[<p>Remember when you owned things? A TV, a phone, maybe even a goat (if you were into farming)? Then the internet declared: <em>“Stop buying, start subscribing.”</em> First came software (SaaS), then servers (IaaS), platforms (PaaS), and AI. Now? You can rent a friend, a CTO, or… nothing at all.</p><p>As geographer <a href="https://en.wikipedia.org/wiki/David_Harvey">David Harvey</a> warned: <em>“Capitalism turns everything into a commodity.” </em>And here we are — in an era where <strong>Anything-as-a-Service </strong>(<em>XaaS</em>) isn’t just tech jargon. It’s the commodification of reality itself.</p><h3>The Absurd (and Occasionally Useful) XaaS Economy</h3><p>Cloud and AI made it easy to build and ship almost everything instantly, from machine learning models, to API payments, maps, language translation, and even image and video generation… with just a few lines of code — with low code or with no code at all.</p><p>We now live in a world where <strong>Anything-as-a-Service</strong> is not just a tech term, it is a <em>business philosophy </em>and a<em> cultural phenomenon.</em></p><p>Some of these services are brilliant and genuinely useful, Others… Well, they make you question whether we’ve reached the peak of capitalism. Here’s a taste:</p><ul><li><a href="https://rentafriend.com/"><strong>Friend as a Service</strong> </a>— Yes, you can literally rent someone to hang out with you. Not dating, just companionship.</li><li><a href="https://ventionteams.com/cto-as-a-service"><strong>CTO as a Service</strong> </a>— Need tech leadership but can’t afford a full-time Chief Technology Officer? Fine, Rent one.</li><li><a href="https://medium.com/@olivia_42741/the-revolution-of-startup-as-a-service-a-gateway-to-entrepreneurial-success-c2adb96eb9c0"><strong>Startup as a Service</strong></a> — Why build a startup from scratch when someone will create one for you and outsource the pain of launching a business. (as if innovation can be pre-packaged)</li><li><a href="https://www.goatasaservice.com/"><strong>Goat as a Service</strong></a> — Yes, actual goats. You hire them to eat weeds and grass and clear your land.</li><li><a href="https://github.com/tomdionysus/foaas"><strong>Fuck Off as a Service</strong></a><strong> </strong>(my favourite) — A playful API that returns various versions of “fuck off” messages. yet, I find this one useful becuase sometimes that’s all what you need.</li><li><a href="https://www.nothingsaas.com/"><strong>Nothing as a service</strong></a><strong> — </strong>I just found this while writing this post, it looks like other people are already uncomfortable with the new trend.</li></ul><h3>Why This Isn’t Just a Joke</h3><p>The explosion of “<strong>X-as-a-Service</strong>” reflects a deeper shift in how we relate to ownership and access. We don’t buy movies, we stream them. We don’t buy cars, we rent them. We don’t even own our pets — we lease them for the weekend and send them back when the grass is gone.</p><p>Some XaaS offerings serve real needs, while others flirt with absurdity, but all highlight a fundamental question: In a world where owning is old-fashioned, what does it mean to truly possess anything anymore?</p><h3>Where this is heading?</h3><p>Because the ultimate magic trick in new capitalism is if something exists, it can be packaged, branded and turned into a subscription plan. and it if does not exist, we’ll invent it.</p><p>It is not about products anymore, it is about experiences, relationships, and emotions all monetized and delivered as a service. <em>Therapy-as-a-Service</em>, <em>Happiness-as-a-Service</em>, we are heading toward a future where every aspect of life can be swiped, tapped, or API call away.</p><p>Because in the end, <strong>NaaS</strong> might not be the end of the trend. It could be the beginning of the next big business model:<br><strong><em>Everything and Nothing… as a Service.</em></strong></p><p><strong><em>What’s the weirdest “as-a-Service” you’ve seen? Share it in the comments — I’m building my own “WeirdXaaS” directory.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69d59d8ac5b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Everything Ends in “Ops”: The Real Reason Behind the Rise of DevOps, MLOps, LLMOps… OpsOps]]></title>
            <link>https://medium.com/@abderrahimfazazi/why-everything-ends-in-ops-the-real-reason-behind-the-rise-of-devops-mlops-llmops-opsops-3ad56a434cbb?source=rss-136ca40a75cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ad56a434cbb</guid>
            <category><![CDATA[llmops]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[aiops]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Abderrahim fazazi]]></dc:creator>
            <pubDate>Sun, 03 Aug 2025 13:31:07 GMT</pubDate>
            <atom:updated>2025-08-03T13:31:07.692Z</atom:updated>
            <content:encoded><![CDATA[<p>DevOps, SecOps, DevSecOps, CloudSecOps, NetSecOps, MLOps, LLMOps, DataOps, ModelOps, FeatureOps, PromptOps, ExplainOps, AIOps, FinOps, KubeOps…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*uIAEeGLXmy5mDdsFqc7G5Q.png" /></figure><h3>The “Ops” Explosion: What’s Really Going On?</h3><p>If you’ve felt overwhelmed by the avalanche of terms ending with “Ops,” you’re not alone. It might seem like a silly suffix party gone wild, but this trend reflects a profound reality of modern technology: <strong>complexity is exploding, and the way to tame it is through operational rigor.</strong></p><h3>The “Ops” Evolution Timeline: From ChaOS to ControlOps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nmPZF0BksqvPArsSoL5qGw.png" /></figure><p>The rise of “<em>Something</em>Ops” isn’t random — it’s the tech industry’s survival mechanism. Let’s break down how we got here:</p><h4>1. The Stone Age: IT Ops (1990s)</h4><p>“If it ain’t broke, don’t touch it”</p><ul><li>Manual server patching, ticket queues longer than a CVS receipt, and the infamous “wall of confusion” between dev and ops teams.</li><li><em>Why it failed</em>: Businesses moved faster than sysadmins could reboot servers.</li></ul><h4>2. The Revolution: DevOps (2008)</h4><p>“Move fast and don’t break things (as often)”</p><ul><li>CI/CD pipelines turned months-long releases into hourly deployments.</li><li>The big insight: automation + collaboration = speed + stability.</li><li><em>Fun fact</em>: Early DevOps adopters deployed code 30x more frequently (Puppet, 2014).</li></ul><h4>3. AI + Cloud = The Big Bang Specialized Ops (2020s)</h4><p><em>“When DevOps met hyperscale clouds and AI, the ‘Ops’ universe expanded faster than Elon’s X rebrands — chaotic, expensive, and suddenly everywhere.”</em></p><p>Cloud-native architectures, massive data pipelines, LLMs, and real-time analytics introduced layers of complexity no single DevOps team could handle. So we got <strong>MLOps</strong>, <strong>LLMOps</strong>, <strong>DataOps</strong>, <strong>FinOps</strong>, <strong>KubeOps</strong>, and yes — even <strong>PromptOps</strong>.</p><p>Each emerged not out of buzzword inflation, but necessity. You can’t run a billion-parameter language model on a Sticky note and prayer.</p><p><strong>Why it happened:</strong><br>DevOps was supposed to be the fix. It gave us pipelines, automation, faster deploys, and fewer “it works on my machine” excuses. Software got faster, leaner, more iterative.</p><p>But then AI entered the chat. And unlike software, AI didn’t just ship code — it shipped <strong>models</strong> that had to be trained, retrained, monitored, and governed and <strong>data </strong>that had to be processed and shipped as well.<br>It demanded <strong>datasets</strong>, <strong>pipelines</strong>, <strong>GPUs</strong>, <strong>compliance audits</strong>, and worst of all… <strong>hallucination mitigation strategies</strong>.<br>Because now your product doesn’t just break — it invents fake math, quotes nonexistent research, or tells your customer their password is a Tajine.</p><p>Suddenly, DevOps wasn’t enough.</p><p>Enterprises were drowning in complexity. So they created new lifeboats for every domain:</p><ul><li><strong>MLOps</strong> to deploy and monitor models</li><li><strong>DataOps</strong> to keep pipelines from collapsing</li><li><strong>LLMOps</strong> to babysit large language models</li><li><strong>PromptOps</strong> to wrangle prompt templates and retrieval systems</li><li><strong>FinOps</strong> to explain why your cloud bill could fund a moon mission</li><li>And so on.</li></ul><p><strong>The result?</strong><br> A universe of “Ops” so vast and fragmented, it collapsed into itself — and <strong>spawned OpsOps</strong>:<br> the team responsible for coordinating the teams coordinating the teams.</p><p>Because when you have five platforms, three CI/CD systems, and two teams arguing over who owns /v1/status, someone has to play referee.<br>Welcome to <strong>OpsOps</strong>, the DevOps of DevOps, the glue between glues.</p><h4>4. <strong>The Meta-Ops Era: OpsOps (Emerging)</strong></h4><p><em>“Who ops the ops-ers?”</em></p><p>If you have a DevOps team deploying ML models built by the MLOps team, wrapped in prompts managed by the PromptOps team, all monitored by your AIOps platform — who coordinates it all?</p><p>Welcome to <strong>OpsOps</strong>: the operations of operations.<br>They’re the brave souls who:</p><ul><li>Merge CI/CD pipelines written in <strong>three YAML religions</strong>, none of which are compatible with GitHub Actions</li><li>Reconcile <strong>monitoring dashboards</strong> that all scream in different fonts and disagree by 3.6 seconds</li><li>Ask <em>“Who owns this?”</em> in every meeting, only to be met with five engineers looking at their shoes</li><li>Manage Slack channels named #ops-ops-core, #core-opsops, and #not-our-problem</li></ul><p>I joke — barely. <strong>OpsOps is the backend of the backend</strong>, wiring up platform engineering, IDevEx, and keeping your YAML files from staging a coup, because at scale, <strong>“Ops” isn’t a job — it’s a multiverse.</strong> And someone has to keep the timelines from collapsing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ad56a434cbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set up CI CD using Jenkins for your NextJs app]]></title>
            <link>https://medium.com/@abderrahimfazazi/set-up-ci-cd-using-jenkins-for-your-nextjs-app-db933ac87e93?source=rss-136ca40a75cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/db933ac87e93</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Abderrahim fazazi]]></dc:creator>
            <pubDate>Wed, 03 May 2023 19:11:37 GMT</pubDate>
            <atom:updated>2023-05-03T19:11:37.290Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we are going through prerequisites and steps of setting up Jenkins, linking to your GitHub repository as well as automating the building process.</p><blockquote>· <strong><em>Prerequisites</em></strong></blockquote><blockquote>· <strong><em>Installing Jenkins</em></strong></blockquote><blockquote>· <strong><em>Get the Access token from GitHub.</em></strong></blockquote><blockquote>· <strong><em>Create a NextJs app.</em></strong></blockquote><blockquote>· <strong><em>Configure Credentials in Jenkins.</em></strong></blockquote><blockquote>· <strong><em>Install node plugin and configure tools.</em></strong></blockquote><blockquote>· <strong><em>Writing a Jenkins File.</em></strong></blockquote><blockquote>· <strong><em>Configuring Job.</em></strong></blockquote><blockquote>· <strong><em>Automate Building using GitHub webhooks.</em></strong></blockquote><blockquote>· <strong><em>Conclusion</em></strong></blockquote><p>In this article we are going to assume that you are going on two machines, the first is where you are coding, and we are going to name it Machine Code and the second one is where you are going to deploy your code and configure CI CD using Jenkins, and we name it Deployment Machine.</p><h3>· <strong><em>Prerequisites</em></strong></h3><p>To set up Jenkins with NextJs there are a few prerequisites that you need to have in place:</p><p>&gt; In the deployment machine all you need to have installed is <em>Open JDK</em>:</p><p>Jenkins is a Java-based application, and it requires a Java Runtime Environment (JRE) or a Java Development Kit (JDK) to run. The recommended JRE/JDK version for Jenkins is OpenJDK.</p><p>You can install it in ubuntu using this command:</p><blockquote><em>sudo apt install openjdk-11-jre</em></blockquote><p>Or you can visit this <a href="https://openjdk.org/install/">website</a> for other OS.</p><p>&gt; In the code machine we need Git and NodeJs:</p><p>Git: You need to have Git installed.</p><p>You can install it in ubuntu using this command:</p><blockquote><em>sudo apt install git</em></blockquote><p>Or you can visit this <a href="https://git-scm.com/downloads">website</a> for other OS.</p><p>NodeJS: You need to have NodeJS installed as well as npm or yarn</p><p>You can install it in ubuntu using these commands:</p><blockquote>curl -sL <a href="https://deb.nodesource.com/setup_lts.x">https://deb.nodesource.com/setup_lts.x</a> | sudo -E bash –</blockquote><blockquote>sudo apt-get install -y nodejs</blockquote><p>Finally, we need to set up a GitHub repository: You need to have a GitHub repository set up for your NextJs app. You can create a new repository or use an existing one.</p><p>You can check <a href="https://docs.github.com/en/get-started/quickstart/create-a-repo">GitHub_doc</a> for that.</p><h3>· <strong><em>Installing Jenkins</em></strong></h3><p>Assuming that you have OpenJDK installed, you can install Jenkins in the deployment machine simply by running this command if you working in ubuntu or you can check this <a href="https://www.jenkins.io/doc/book/installing/linux/">website</a> for other OS:</p><blockquote><em>curl -fsSL </em><a href="https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key"><em>https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key</em></a><em> | sudo tee \</em></blockquote><blockquote><em>/usr/share/keyrings/jenkins-keyring.asc &gt; /dev/null</em></blockquote><blockquote><em>echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \</em></blockquote><blockquote><a href="https://pkg.jenkins.io/debian-stable"><em>https://pkg.jenkins.io/debian-stable</em></a><em> binary/ | sudo tee \</em></blockquote><blockquote><em>/etc/apt/sources.list.d/jenkins.list &gt; /dev/null</em></blockquote><blockquote><em>sudo apt-get update</em></blockquote><blockquote><em>sudo apt-get install jenkins</em></blockquote><p>Once the installation is done you can access Jenkins via port 8080 if it is not used by other apps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZAOz8aRmY2l4J3pmG4oFw.png" /></figure><p>As it shown in the screen you need to pass the AdminPassword stored in the /var/lib/jenkins/secrets/initialAdminPasswordso all you need to do is run this command:</p><blockquote><em>sudo cat /var/lib/jenkins/secrets/initialAdminPassword</em></blockquote><p>Once you paste it you can hit Continue to move to the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HKvftrHePBKpXIXSq-Wz8w.png" /></figure><p>We are not going to dig deeper in this step so all you need to do is install suggested plugins and wait until the installation finished.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bjTZVqUqRs1LxZaEH7NWnw.png" /></figure><p>Once the installation finished you will be redirected automatically to next screen where you are going to create the first admin user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7gPFU3qpEGrEZ2jhVLji2g.png" /></figure><p>Save and Continue and tara… Jenkins is Ready!</p><h3>· <strong><em>Get the Access token from GitHub.</em></strong></h3><p><em>In order</em> to push our project to GitHub as well as connect Jenkins to our GitHub we need to setup a connection method, in this article we are going to use GitHub Access token, which you can get by following the next steps:</p><p>Login to your GitHub Account -&gt; Go to settings -&gt; scroll down and click Developper settings from the sidebar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dl4LJNu-7Shl_2H0NOJKTw.png" /></figure><p>Choose Personal access tokens from the sidebar and then select Tokens(classic).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8e1gDqJ1p78tArsYZGRp9g.png" /></figure><p>Choose generate new token and select Generate new token (Classic).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lLiSnDgCAwbgoDQY9NBm9A.png" /></figure><p>Give it a name, select repo from the menu and scroll down and click submit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IM_qoxloA7jMTCuxvBMNbw.png" /></figure><p>Once you submit, you are going to need to copy you access token and store it somewhere safe as GitHub will not store it for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7PUf84vhZK8pvk20m9U1dQ.png" /></figure><p>The next step is to create repository and give it a name.</p><h3>· <strong><em>Create a NextJs app</em></strong></h3><p>You can work with an existing project, or you can create new one using this command:</p><blockquote><em>npx create-next-app.</em></blockquote><p>Once the creation is done, we need to run these commands in order push the code to github:</p><blockquote>git init</blockquote><blockquote>git remote add origin <a href="https://%3cAccess_Token%3e@github.com/%3cusername%3e/%3crepository_name">https://&lt;Access_Token&gt;@github.com/&lt;username&gt;/&lt;repository_name</a>&gt;</blockquote><blockquote>git commit -m “A meaningful description of the commit”</blockquote><blockquote>git push — set-upstream origin &lt;branch_name&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1QGR_PwPfkFZHSV_j_wuA.png" /></figure><h3>· <strong><em>Configure Credentials in Jenkins.</em></strong></h3><p>Next step is to configure Jenkins credentials to in order to give Jenkins access to our GitHub repository.</p><p>In the Jenkins Dashboard we select manage Jenkins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ud0zoy34c4aNHxaizsdkYA.png" /></figure><p>Then we select Credentials -&gt;Configure System -&gt; Global credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmCfy5GW_34BVCQcZ-0CRg.png" /></figure><p>Select Add Credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lt2hAnmsWR1Z28uznMaEkQ.png" /></figure><p>In Username field we type in our GitHub username and in the password field we don’t enter our password but we use the Access Token we created in a previous step, and we hit create. And we are done with this step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZGGdR5zu9dJts-VVpn9StA.png" /></figure><h3>· <strong><em>Install node plugin and configure Jenkins tools</em></strong></h3><p>In order to automate building and starting of your app, Jenkins provides a set of pre-built plugin, These plugins are designed to help simplify the process of building, testing, and deploying software, and they provide a wide range of features and functionality that can be customized to meet the needs of your particular application.</p><p>For our NextJs simple app, all we need is install nodejs plugin following these steps:</p><p>Go to Jenkins Dashboard -&gt; select Manage Jenkins from the sidebar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AhCoA7YpO1yLtU4bqqicXg.png" /></figure><p>Select Manage Plugins -&gt; Select available plugins from the sidebar and search for nodejs -&gt; and then click Download and restart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SS6jU-vYnQHmt0OyayHkTw.png" /></figure><p>Once you hit restart, Jenkins will restart as you might guessed and you will logged out, so you need to… log in “perfect”, you are doing very well.</p><p>In order to use this plugin, we need to configure it following the next steps:</p><p>Go to Jenkins Dashboard -&gt; select Manage Jenkins from the sidebar.</p><p>Select Global Tool configuration and scroll down until you find nodejs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aiDUXnlDQSL-6edRfmuPjA.png" /></figure><p>Choose Add NodeJS -&gt; give it a name and choose the node version you want to use as well as npm version if want a specific version and hit save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xJGBVdqPHC4I5TGNJ5C9cw.png" /></figure><h3>· <strong><em>Writing a Jenkins File.</em></strong></h3><p>Jenkinsfile is a special kind of file used by Jenkins to define pipelines as code. It uses a domain-specific language (DSL) based on the Groovy programming language, you can check Jenkinsfile syntax in this <a href="https://www.jenkins.io/doc/book/pipeline/syntax/">website</a>.</p><p>To continue you should create a Jenkinsfile in the root directory of your code like this:</p><pre>pipeline{<br>    agent any<br>    tools {nodejs &quot;my-nodejs&quot;}<br>    stages{<br>        stage(&quot;Build&quot;){<br>            steps{<br>                nodejs(&quot;my-nodejs&quot;) {<br>                    sh &#39;npm install&#39;<br>                    sh &#39;npm build&#39;<br>                }<br>            }<br>        }<br>        stage(&quot;Start&quot;){<br>            steps{<br>                nodejs(&quot;my-nodejs&quot;) {<br>                    sh &#39;npm start&#39;<br>                }<br>                echo &quot;App started successfully&quot;<br>            }<br>        }<br>    }<br>}</pre><h3>· <strong><em>Configuring Job.</em></strong></h3><p>The next step is to create our Job in Jenkins following the next steps:</p><p>Go to Jenkins Dashboard -&gt; you can Choose Create a job or New Item and both will redirect you to the next screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w_88OwjRPH32Ft6LRFATdg.png" /></figure><p>Give it a name and choose Multibranch pipeline and hit ok.</p><p>In the next screen you will need to scroll down until Branch Sources and select GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l-l4DWzGv6s9_peVClkmtA.png" /></figure><p>You will need two things here:</p><p>1- Select the credentials (that you have created in previous step</p><p>2- GitHub URL</p><p>And then hit validate to see if everything is ok.</p><p>Finally click Save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e84gkJXIa2wSVZSBzBbUzw.png" /></figure><p>This will redirect you to the next screen. And you will need to wait until the building process finishes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pCYCGr-pSL1mtvvIn_WRvg.png" /></figure><p>Choose Status from the sidebar.</p><p>Notice that only the branches containing a Jenkinsfile will appear here.</p><p>To build the project you to access to the branch and hit Build Now…</p><p>How about automating this process, so that the project will be built after every time we push a new update to our repository, well that’s exactly what we are going to do in the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZusoJh29wPl8XJGbmcR4Xw.png" /></figure><h3>· <strong><em>Automate Building using GitHub webhooks.</em></strong></h3><p>Next thing we want to do is to automate the building process using webhooks following next steps:</p><p>Go to Jenkins Dashboard -&gt; select Manage Jenkins from the sidebar -&gt; Configure System -&gt; Scroll down until you find GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYhew8dErzWMbmYGg7TooQ.png" /></figure><p>Choose Advance -&gt; Select Override Hook URL and Copy the URL and save it somewhere safe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xOfJJJNC6Y2268oJOY0nA.png" /></figure><p>Next thing we need to do is to go to our GitHub repository and hit settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kv_znZOmmO6oQWwLUnULxg.png" /></figure><p>From the sidebar choose Webhooks and hir Add webhook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*PWOyOKcFcLasPjpIiL3bug.png" /></figure><p>Paste the URL you copied in the last step in the Payload URL field, notice that GitHub doesn’t accept localhost as Payload URL, once you hit Add Webhook, GitHub will automatically ping the URL to test connection, if everything is OK, you should see something similar to this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*nfDPJJjer7HzoQsnxfxahw.png" /></figure><p>Once you have set up Jenkins and linked it to your Next.js app repository using webhooks and created a pipeline, you can use Jenkins to automate your application’s build, test, and deployment processes. Here are some steps you can take:</p><p>Configure the pipeline: Use the Jenkinsfile to define your pipeline’s stages, which include build, test, and deploy. You can also add additional stages to run any other tasks required for your application.</p><p>Trigger the pipeline: Whenever a change is made to your Next.js app repository, Jenkins will automatically detect it and trigger the pipeline.</p><p>Monitor the pipeline: You can monitor the progress of the pipeline and view the results of each stage. If any stage fails, Jenkins will automatically stop the pipeline and notify you.</p><p>Debug and fix issues: If any issues arise during the pipeline, you can use Jenkins to identify the problem and fix it. You can also use Jenkins to roll back to a previous version of your application if needed.</p><h3>· <strong><em>Conclusion</em></strong></h3><p>In conclusion, setting up Jenkins and linking it to a repository in GitHub can greatly streamline the development process and help automate the building process of your applications. By configuring webhooks in GitHub, Jenkins can be notified automatically when changes are pushed to the repository, triggering a build process that compiles the code, runs tests, and generates artifacts. This can save developers a significant amount of time and effort, allowing them to focus on writing and testing code, rather than manually running builds. With the proper configuration and setup, Jenkins can help teams of all sizes to build and deploy applications quickly and reliably</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db933ac87e93" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>