Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Not requiring something in the middle between prefix and branch name #80

Open
nnguyen opened this issue Feb 5, 2015 · 2 comments
Open
Labels

Comments

@nnguyen
Copy link

nnguyen commented Feb 5, 2015

I want to be able to create job with prefix that is almost the same as the job name (minus the branch name).
My job name is ThisIsMyWholeJobNameAndAlsoMyPrefix-master

Exception in thread "main" java.lang.AssertionError: Unable to find any jobs matching template regex: ^(ThisIsMyWholeJobNameAndAlsoMyPrefix-[^-]*)-(master)$
You need at least one job to match the templateJobPrefix and templateBranchName suffix arguments. Expression: (templateJobs?.size() > 0)
    at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:388)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:658)
    at com.entagen.jenkins.JenkinsJobManager.findRequiredTemplateJobs(JenkinsJobManager.groovy:108)
    at com.entagen.jenkins.JenkinsJobManager$findRequiredTemplateJobs.callCurrent(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
    at com.entagen.jenkins.JenkinsJobManager.syncWithRepo(JenkinsJobManager.groovy:37)
    at com.entagen.jenkins.JenkinsJobManager$syncWithRepo.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at com.entagen.jenkins.Main.main(Main.groovy:30)```
@elsticky
Copy link

elsticky commented May 7, 2015

I can't help you with your issue but I was curious how a job name should look by default? I don't know how to determine a Prefix for a job in Jenkins?

@jpaolini
Copy link

It's expecting a job name in the format: ThisIsMyWholeJobNameAndAlsoMyPrefix-JobDescription-master. The format is Prefix-SomethingHere-branchName. Hope this helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants