Menu

Day 79: Polling and a Registry
πŸ“°

Day 79: Polling and a Registry

DEV Community: jenkinsΒ·Nnamdi Felix IbeΒ·6 days ago
#zNaPgL3v
#devtojenkins#devto#dev#build#jenkins
Reading 0:00
15s threshold

Day 79 of DevOps, Day 29 of Azure. Both tasks today turned out to run somewhere other than where the configuration implied.

A Jenkins job set up to build on an agent polls the repository from the controller, which is the machine the last four days have been about getting work off. And a container image meant to be built by the registry got built on the lab host instead, because the permission for the server-side build was missing.

One Jenkins task, one Azure task. Make a job trigger itself on a commit, then create a container registry and push an image to it. The tasks come from the KodeKloud Engineer platform.

Task 1: A job that triggers itself

The task: a job named datacenter-app-deployment , running on the stapp01 agent, triggered when a commit lands on master , updating /var/www/html .

Step 1: Check the ownership first

Check that /var/www/html is owned by sarah before relying on it.

Small step, worth naming, because this batch answers one question three different ways.…

Continue reading β€” create a free account

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