Comments (3)
Somewhat related PR - jenkins-x-plugins/jx-gitops#287
from jx.
In regards to this error example:
error: failed to validate: failed to find build number: failed to find BuildNumber: failed to lazily create
PipelineActivity myorg-github-private-pr-1-1: PipelineActivity.jenkins.io "myorg-github-private-pr-1-1"
is invalid: metadata.labels: Invalid value: ".github-private": a valid label must be an empty string or
consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character
(e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is
'(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
The source of the issue appears to stem from the normalizing of names
and/or labels
in the PipelineRun
which results in an error downstream when the logic tries to generate a PipelineActivities
and can not find any PipelineRun
s with a matching repo name.
When digging down the logic, it seems like much of the code paths end up using the ToValidValue helper method in the naming module of jenkins-x/jx-helpers, which ends up stripping characters like .
.
.e.g. the
name
orlabel
generated for repo:github.com/myorg/.github-private.git
ends up beingmyorg-github-private
What I experienced locally, is that JX3 correctly triggers a PipelineRun
for the .github-private
repo, which functions as expected. However, no PipelineActivity
k8 object is never generated as that logic fails to find a PipelineRun
for .github-private
as all the PipelineRun
labels have been sanitized too: github-private
.
At least that is what appears to be occurring...
from jx.
The workaround we are currently using is simply to use GitHub Actions
for linting the .github
and .github-private
repos. The repos are still imported into JX3; however, I've removed the .lighthouse
folder so that we can still utilize JX3 for ChatOps
.
from jx.
Related Issues (20)
- (jx gitops) helmfile report 404 on private github pages HOT 1
- JenkinsX just stopped triggering pipelines
- jx git operator minikube install on windows hangs on "waiting for the mandatory Secrets to be populated from ExternalSecrets" util timeout. HOT 1
- Migrate to Native Tekton HOT 2
- Results passed between tasks disappear when using a "uses" step
- Quickstarts giving: repository 'https://github.com/jenkins-x-bdd/repo.git/' not found
- The pipeline is getting failed and not able to identify where exactly it is getting failed HOT 1
- jx-git-operator │ Error: context deadline exceeded HOT 1
- jenkins
- Outdated jx version installed by brew HOT 2
- Update Twitter Icon on Website
- bvv ccvbn
- asfdasfasf
- Error executing Maven HOT 1
- Top Jenkins X Contributor Award 2024 HOT 2
- Monorepo support in V3?
- no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"~!!! HOT 2
- Switch to artifact registry for GKE HOT 2
- "jx admin operator" takes too long time waiting
- Failing while building jenkins-parent version 2.319.2 using mvn clean install (org.jenkins-ci.main:jenkins-parent:2.319.2) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jx.