Menu

Day 77: A Pipeline and a Private Subnet
📰

Day 77: A Pipeline and a Private Subnet

DEV Community: jenkins·Nnamdi Felix Ibe·10 days ago
#qmhrJ7oY
#devtojenkins#devto#dev#agent#task
Reading 0:00
15s threshold

Day 77 of DevOps, Day 27 of Azure. Both tasks today were about a path that exists until it doesn't.

A two-line shell script deployed an application and quietly depended on three things nobody had checked. And an Azure VM built with no public IP turned out to be the exact configuration that the platform is in the middle of changing underneath.

One Jenkins task, one Azure task. Write a first declarative pipeline, then build a VM reachable only from inside its own network. The tasks come from the KodeKloud Engineer platform.

Task 1: A first declarative pipeline

The task: a Pipeline job named datacenter-webapp-job that pulls the latest code from master onto stapp01 .

Step 1: The agent and a stale instruction

Plugins: SSH Build Agents, Pipeline Agent: App Server 1, label stapp01, remote root /home/sarah/jenkins_agent

Enter fullscreen mode

Exit fullscreen mode

In every Jenkins task in this batch, I had to install Java 17 on the node, "as Jenkins (or its remoting agent) is compiled for Java 17".

The shape…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.