Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing yaml file (CasC) from config does not trigger the job #54

Closed
pawelprazak opened this issue Jul 15, 2019 · 2 comments
Closed

Removing yaml file (CasC) from config does not trigger the job #54

pawelprazak opened this issue Jul 15, 2019 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@pawelprazak
Copy link

pawelprazak commented Jul 15, 2019

The 6-approvals.yaml was deleted and job no. 10 should show up, but it didn't:
image

Logs:

2019-07-15T07:31:15.400Z        INFO    controller-jenkins      jenkins/handler.go:41   *v1.ConfigMap/jenkins-operator-user-configuration-infrastructure has been updated       {"cr": "infrastructure"}
2019-07-15T07:31:15.543Z        INFO    controller-jenkins      jobs/jobs.go:235        Running job, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:0 Status: Retires:0 CreateTime:2019-07-15 07:31:15.543609433 +0000 UTC m=+493812.641621984 LastUpdateTime:<nil>}     {"cr": "infrastructure"}
2019-07-15T07:31:15.902Z        INFO    controller-jenkins      jobs/jobs.go:235        Running job, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:0 Status: Retires:0 CreateTime:2019-07-15 07:31:15.90222891 +0000 UTC m=+493813.000241463 LastUpdateTime:<nil>}      {"cr": "infrastructure"}
2019-07-15T07:31:48.012Z        WARN    controller-jenkins      jobs/jobs.go:140        Build failed, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:2 Status:failure Retires:0 CreateTime:2019-07-15 07:31:15 +0000 UTC LastUpdateTime:2019-07-15 07:31:37 +0000 UTC}   {"cr": "infrastructure"}
2019-07-15T07:31:48.012Z        WARN    controller-jenkins      jenkins/jenkins_controller.go:167       Reconcile loop failed: build failed     {"cr": "infrastructure"}
2019-07-15T07:31:48.283Z        INFO    controller-jenkins      jobs/jobs.go:235        Running job, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:2 Status:failure Retires:1 CreateTime:2019-07-15 07:31:15 +0000 UTC LastUpdateTime:2019-07-15 07:31:48 +0000 UTC}    {"cr": "infrastructure"}
2019-07-15T07:31:49.445Z        INFO    controller-jenkins      jobs/jobs.go:235        Running job, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:2 Status:failure Retires:1 CreateTime:2019-07-15 07:31:15 +0000 UTC LastUpdateTime:2019-07-15 07:31:48 +0000 UTC}    {"cr": "infrastructure"}
2019-07-15T07:31:49.462Z        WARN    controller-jenkins      jobs/jobs.go:155        Couldn't retry build, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:2 Status:failure Retires:1 CreateTime:2019-07-15 07:31:15 +0000 UTC LastUpdateTime:2019-07-15 07:31:48 +0000 UTC}   {"cr": "infrastructure"}
2019-07-15T07:32:19.268Z        WARN    controller-jenkins      jobs/jobs.go:140        Build failed, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:3 Status:failure Retires:1 CreateTime:2019-07-15 07:31:15 +0000 UTC LastUpdateTime:2019-07-15 07:32:16 +0000 UTC}   {"cr": "infrastructure"}
2019-07-15T07:32:19.268Z        WARN    controller-jenkins      jenkins/jenkins_controller.go:167       Reconcile loop failed: build failed     {"cr": "infrastructure"}
2019-07-15T07:32:21.643Z        INFO    controller-jenkins      jobs/jobs.go:235        Running job, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:3 Status:failure Retires:2 CreateTime:2019-07-15 07:31:15 +0000 UTC LastUpdateTime:2019-07-15 07:32:19 +0000 UTC}    {"cr": "infrastructure"}
2019-07-15T07:32:22.847Z        INFO    controller-jenkins      jobs/jobs.go:235        Running job, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:3 Status:failure Retires:2 CreateTime:2019-07-15 07:31:15 +0000 UTC LastUpdateTime:2019-07-15 07:32:19 +0000 UTC}    {"cr": "infrastructure"}
2019-07-15T07:32:22.866Z        WARN    controller-jenkins      jobs/jobs.go:155        Couldn't retry build, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:3 Status:failure Retires:2 CreateTime:2019-07-15 07:31:15 +0000 UTC LastUpdateTime:2019-07-15 07:32:19 +0000 UTC}   {"cr": "infrastructure"}
2019-07-15T07:32:35.512Z        INFO    controller-jenkins      jobs/jobs.go:134        Build finished successfully, {JobName:jenkins-operator-user-configuration Hash:jbmxxsZ6iD05P1EEyHIYq/lvpisqhwwWhuZ71f9E5QA= Number:4 Status:success Retires:2 CreateTime:2019-07-15 07:31:15 +0000 UTC LastUpdateTime:2019-07-15 07:32:21 +0000 UTC}    {"cr": "infrastructure"}

Also, maybe operator should restart master on removals?

@pawelprazak pawelprazak added bug Something isn't working question Further information is requested labels Jul 15, 2019
@benlangfeld
Copy link

What would you like to happen if the job ran on removal?

Also, maybe operator should restart master on removals?

I think this is the only useful thing to do.

tomaszsek added a commit that referenced this issue Jul 23, 2019
#54 Fix groovy script removal bug
tomaszsek added a commit that referenced this issue Jul 23, 2019
@tomaszsek
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants