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

[ZD-75831]: Fixing Jenkinsfile #8

Merged
merged 1 commit into from Jun 4, 2019
Merged

[ZD-75831]: Fixing Jenkinsfile #8

merged 1 commit into from Jun 4, 2019

Conversation

carlosrodlop
Copy link

The current version Jenkinsfile fails to import The Shared Template Catalog

----------------
Tue Jun 04 09:33:57 UTC 2019: Importing catalog customerPortalFrontendTeamCatalog with SCMSource org.jenkinsci.plugins.github_branch_source.GitHubSCMSource{id='b9fd5767-44b2-4dbb-a0a9-9c3c13aded5a'} and branch or tag master
Examining mock-carlosrodlop-org/my-pipeline-catalog
Attempting to resolve master as a branch
Resolved master as branch master at revision bdac0c23833966e518c915b981c5421368e5fc04
Considering Pipeline template directory 'simple-java-maven-app'
 - Loading metadata from template.yaml
 - Loading template script from Jenkinsfile
ERROR:  - Jenkinsfile for template simple-java-maven-app in catalog customerPortalFrontendTeamCatalog cannot be compiled:
startup failed:
WorkflowScript: 37: unexpected token: } @ line 37, column 1.
   }
   ^

1 error

ERROR: Error reading from SCMSource: hudson.AbortException: Jenkinsfile for template simple-java-maven-app in catalog customerPortalFrontendTeamCatalog cannot be compiled:
startup failed:
WorkflowScript: 37: unexpected token: } @ line 37, column 1.
   }
   ^

1 error

Import complete at Tue Jun 04 09:34:01 UTC 2019 with status ERROR_IN_IMPORT
----------------

This fix allows to import it successfully

----------------
Tue Jun 04 09:41:36 UTC 2019: Importing catalog customerPortalFrontendTeamCatalog with SCMSource org.jenkinsci.plugins.github_branch_source.GitHubSCMSource{id='b9fd5767-44b2-4dbb-a0a9-9c3c13aded5a'} and branch or tag master
Examining mock-carlosrodlop-org/my-pipeline-catalog
Attempting to resolve master as a branch
Resolved master as branch master at revision b4624efe48631bcc62f4df8058caa5e6db9daf41
Considering Pipeline template directory 'simple-java-maven-app'
 - Loading metadata from template.yaml
 - Loading template script from Jenkinsfile
Creating Pipeline job template simple-java-maven-app
 - Adding new template to catalog configuration
Removing deleted templates from catalog configuration
Changes made to catalog, updating job templates for catalog
Creating job templates folder for catalog
Job templates folder created or updated: Pipeline Template Catalog: Shared Template Catalog for Teams Working on the Customer Portal
Import complete at Tue Jun 04 09:41:40 UTC 2019 with status HEALTHY
----------------

Copy link

@alexanderrtaylor alexanderrtaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep that was broken :)

@MarkEWaite MarkEWaite merged commit 3856f62 into cloudbees:master Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants