cloud-native-toolkit / cloud-native-toolkit/planning

2-3 minute delay starting Jenkins pipelines

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
bug pipeline
Dominant language
No language data
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I'm not sure that this is strictly a bug, but it's an undesirable behaviour that could be investigated and, hopefully, improved. I've encountered it while doing the MOOC, but @mjperrins indicates that it's the usual behaviour with Jenkins pipelines in OpenShift.

**Describe the bug**

Whenever I push a change to my GitHub repo, I'm seeing a 2-3 minute delay after the pipeline shows up in OpenShift before it appears in Jenkins. Here's how it looks in the OpenShift console (under Builds > Pipelines) during that time:

![Build Delay](https://user-images.githubusercontent.com/3935584/69556903-a5784600-0f73-11ea-89b7-1c1d930ebe56.png)

Matt says that during this time Jenkins is downloading the images that are used for the build steps and this time is not reflected in the Jenkins UI. He refers to the Jenkins Kubernetes plug-in docs: https://github.com/jenkinsci/kubernetes-plugin

**Expected behavior**

I would hope to eliminate or at least minimize this delay.

I have experienced Jenkins running in OpenShift in a client environment without a noticeable delay.

**IBM Cloud**

Select the services and tools affected

- [ ] IBM Kubernetes Service Managed Service
- [X] Red Hat OpenShift Managed Services
- [X] Jenkins
- [ ] Tekton
- [ ] SonarQube
- [ ] Pact
- [ ] Artifactory
- [ ] IBM Image Registry

**Additional context**

More notes from Matt:

> moving docker images around into namespaces and running them is a lot of software moving about I think 3min is pretty fair time for Jenkins to prepare itself to run a pipeline

> They do I agree on Dev time , but 15 mins for a UBI based images , UBI are way bigger than standard open source that is probably the difference , check out the sizes of the dependencies , maybe use SysDig to monitor the agents memory CPU and behaviour all the data is inside the cluster , we have found being UBI based does add overhead but then thats for security and compliance reasons

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.