stack trace in configure system (docker, plugin development)

已查看 36 次
跳至第一个未读帖子

Ewelina Wilkosz

未读,
2017年11月10日 12:14:062017/11/10
收件人 Jenkins Developers
I'm working on dockerizing Configuration as Code plugin, which means I create a docker image, based on jenkins:2.60.3, I build the plugin and I install it in a Dockerfile: https://github.com/jenkinsci/configuration-as-code-plugin/blob/praqma/dev/Dockerfile

It seems to be working, but I get stack trace in Configure System:
org.apache.commons.jelly.JellyTagException: jar:file:/var/jenkins_home/war/WEB-INF/lib/jenkins-core-2.60.3.jar!/jenkins/model/Jenkins/configure.jelly:59:84: <st:include> org.kohsuke.stapler.ScriptLoadException: org.apache.commons.jelly.JellyException: Could not parse Jelly script : jar:file:/var/jenkins_home/plugins/configuration-as-code/WEB-INF/lib/configuration-as-code.jar!/org/jenkinsci/plugins/casc/ConfigurationAsCode/index.jelly
	at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:726)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:281)
	at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
	at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
(...)
So I attached to docker container and checked /var/jenkins_home/plugins/configuration-as-code/WEB-INF/lib/configuration-as-code.jar!/org/jenkinsci/plugins/casc/ConfigurationAsCode/index.jelly, and in it I can see:

<<<<<<< HEAD

    <h4 id="${c.extensionpoint.simpleName}-${c.name}">${c.name}</h4>

    <j:if test="${c.extensionpoint != c.target}">

      Implementation of ${c.extensionpoint.simpleName}

=======

    <h4 id="${c.extensionPoint.simpleName}-${c.name}">${c.name}</h4>

    <j:if test="${c.extensionPoint != c.target}">

      Implementation of <a href="https://jenkins.io/doc/developer/extensions/${c.extensionSource}/#${c.extensionPoint.simpleName.toLowerCase()}">${c.extensionPoint.simpleName}</a>

>>>>>>> fork/master


And I don't understand where it comes from... Complete newbie here. Anyone willing to help with troubleshooting?

Daniel Beck

未读,
2017年11月10日 12:27:172017/11/10
收件人 jenkin...@googlegroups.com

> On 10. Nov 2017, at 17:12, Ewelina Wilkosz <ewel...@gmail.com> wrote:
>
> And I don't understand where it comes from... Complete newbie here. Anyone willing to help with troubleshooting?

Judging from your Dockerfile, I expect that to already be in the file at https://github.com/jenkinsci/configuration-as-code-plugin/blob/praqma/dev/Dockerfile#L28 -- probably a bad merge in your local workspace. Check there.

Mark Waite

未读,
2017年11月10日 12:27:292017/11/10
收件人 jenkin...@googlegroups.com
That looks like a failed "git merge".  No idea of the source of that failed merge, but those markers are used by git when it can't resolve a merge of a historical file into the current file.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3cb870c9-4e69-413d-a4d2-29e106459725%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ewelina Wilkosz

未读,
2017年11月10日 14:06:432017/11/10
收件人 Jenkins Developers
right, it does look like a git merge, the thing is, I can't see any conflicts in my repo
so it's just me not understanding how docker build works, I guess I will have to dig more into the issue

Ewelina Wilkosz

未读,
2017年11月10日 14:32:522017/11/10
收件人 Jenkins Developers
ok, when I build locally I do not get stack trace, something is messed up in my Jenkins job or agent :)

Ewelina Wilkosz

未读,
2017年11月10日 15:18:592017/11/10
收件人 Jenkins Developers
wow, I forgot 'checkout scm' step :D it was using the old workspace from previous version of Jenkinsfile, that was the source of conflict I guess
thanks guys for pointing me the workspace as the source of problem, solved!
回复全部
回复作者
转发
0 个新帖子