Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22201

Failed to issue perforce label. Error in label specification. Error detected at line 5. Unknown field name 'Revision'.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: p4-plugin
    • Environment:
    • Similar Issues:

      Description

      Getting below error while creating Perforce Label.

      Stack trace
      java.io.IOException: Failed to issue perforce label. Error in label specification. Error detected at line 5. Unknown field name 'Revision'.
      For Command: /opt/perforce/p4 -s label -i
      With Data:
      ===================
      Label: analytics-continuous-Build-12
      Owner: hdrbob
      Description:
      Changelist: 113024
      Revision: @113024
      Options:
      View:
      //analytics/main/...

      ===================

      at hudson.plugins.perforce.PerforceTagAction.tagBuild(PerforceTagAction.java:195)
      at hudson.plugins.perforce.PerforceTagAction.doSubmit(PerforceTagAction.java:168)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:622)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:91)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:79)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:701)

        Attachments

          Activity

          Hide
          rpetti Rob Petti added a comment -

          Your perforce server doesn't appear to support automatic labels. You'll need to upgrade.

          Show
          rpetti Rob Petti added a comment - Your perforce server doesn't appear to support automatic labels. You'll need to upgrade.
          Hide
          ashitshah16 Ashit Shah added a comment -

          As of now we are using "Luntbuild" for CI builds and thru which we are able to create perforce labels automatically.
          See below luntbuild report:
          [INFO] ------------------------------------------------------------------------
          [INFO] Reactor Summary:
          [INFO]
          [INFO] ARS: Enterprise Application ....................... SUCCESS [0.708s]
          [INFO] Repositories Reporting and Analytics Service ...... SUCCESS [9.493s]
          [INFO] ARS: ars-ear ...................................... SUCCESS [20.191s]
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD SUCCESS
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 30.722s
          [INFO] Finished at: Wed Mar 12 13:44:34 MDT 2014
          [INFO] Final Memory: 38M/1962M
          [INFO] ------------------------------------------------------------------------
          Duration of the builder(s) execution: 0 minutes

          Setup label specification...
          [P4Label] P4Label exec:
          [P4Label] Created Label analytics-1_0-SNAPSHOT(32) (a luntbuild label) with view:
          [P4Label] //analytics/main/...
          Label depot path: //analytics/main/...
          [P4LabelSync] P4Labelsync exec:

          Show
          ashitshah16 Ashit Shah added a comment - As of now we are using "Luntbuild" for CI builds and thru which we are able to create perforce labels automatically. See below luntbuild report: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] ARS: Enterprise Application ....................... SUCCESS [0.708s] [INFO] Repositories Reporting and Analytics Service ...... SUCCESS [9.493s] [INFO] ARS: ars-ear ...................................... SUCCESS [20.191s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 30.722s [INFO] Finished at: Wed Mar 12 13:44:34 MDT 2014 [INFO] Final Memory: 38M/1962M [INFO] ------------------------------------------------------------------------ Duration of the builder(s) execution: 0 minutes Setup label specification... [P4Label] P4Label exec: [P4Label] Created Label analytics- 1_0-SNAPSHOT (32) (a luntbuild label) with view: [P4Label] //analytics/main/... Label depot path: //analytics/main/... [P4LabelSync] P4Labelsync exec:
          Hide
          ashitshah16 Ashit Shah added a comment -

          As of now we are using "Luntbuild" for CI builds and thru which we are able to create perforce labels automatically.
          See below luntbuild report:
          [INFO] ------------------------------------------------------------------------
          [INFO] Reactor Summary:
          [INFO]
          [INFO] ARS: Enterprise Application ....................... SUCCESS [0.708s]
          [INFO] Repositories Reporting and Analytics Service ...... SUCCESS [9.493s]
          [INFO] ARS: ars-ear ...................................... SUCCESS [20.191s]
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD SUCCESS
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 30.722s
          [INFO] Finished at: Wed Mar 12 13:44:34 MDT 2014
          [INFO] Final Memory: 38M/1962M
          [INFO] ------------------------------------------------------------------------
          Duration of the builder(s) execution: 0 minutes

          Setup label specification...
          [P4Label] P4Label exec:
          [P4Label] Created Label analytics-1_0-SNAPSHOT(32) (a luntbuild label) with view:
          [P4Label] //analytics/main/...
          Label depot path: //analytics/main/...
          [P4LabelSync] P4Labelsync exec:

          Show
          ashitshah16 Ashit Shah added a comment - As of now we are using "Luntbuild" for CI builds and thru which we are able to create perforce labels automatically. See below luntbuild report: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] ARS: Enterprise Application ....................... SUCCESS [0.708s] [INFO] Repositories Reporting and Analytics Service ...... SUCCESS [9.493s] [INFO] ARS: ars-ear ...................................... SUCCESS [20.191s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 30.722s [INFO] Finished at: Wed Mar 12 13:44:34 MDT 2014 [INFO] Final Memory: 38M/1962M [INFO] ------------------------------------------------------------------------ Duration of the builder(s) execution: 0 minutes Setup label specification... [P4Label] P4Label exec: [P4Label] Created Label analytics- 1_0-SNAPSHOT (32) (a luntbuild label) with view: [P4Label] //analytics/main/... Label depot path: //analytics/main/... [P4LabelSync] P4Labelsync exec:
          Hide
          rpetti Rob Petti added a comment -

          2006.1 does not support automatic labels, please upgrade your perforce server to 2006.2 or later. If some other CI application is creating labels, then it's likely because it's tagging them, rather than using an automatic label like this plugin does.

          Show
          rpetti Rob Petti added a comment - 2006.1 does not support automatic labels, please upgrade your perforce server to 2006.2 or later. If some other CI application is creating labels, then it's likely because it's tagging them, rather than using an automatic label like this plugin does.
          Hide
          ashitshah16 Ashit Shah added a comment -

          Thanks Rob.

          Show
          ashitshah16 Ashit Shah added a comment - Thanks Rob.
          Hide
          ashitshah16 Ashit Shah added a comment -

          Hi Rob, I just verified that Luntbuild is creating perforce labels.

          $ p4 labels | grep "analytics-1_0-SNAPSHOT(32)"
          Label analytics-1_0-SNAPSHOT(32) 2014/03/12 'a luntbuild label '

          Is it that Jankins plugin do not support perforce server 2006.1?

          Thanks.

          Show
          ashitshah16 Ashit Shah added a comment - Hi Rob, I just verified that Luntbuild is creating perforce labels. $ p4 labels | grep "analytics- 1_0-SNAPSHOT (32)" Label analytics- 1_0-SNAPSHOT (32) 2014/03/12 'a luntbuild label ' Is it that Jankins plugin do not support perforce server 2006.1? Thanks.
          Hide
          rpetti Rob Petti added a comment - - edited

          Luntbuild or whatever it's called is creating labels, but it's likely tagging them individually. The perforce plugin does not do this. It uses automatic labels instead, which are far more lightweight, faster, and use less disk space on the server. Unfortunately, automatic labels are not supported in 2006.1, so you will need to upgrade your server in order to use this functionality.

          Show
          rpetti Rob Petti added a comment - - edited Luntbuild or whatever it's called is creating labels, but it's likely tagging them individually. The perforce plugin does not do this. It uses automatic labels instead, which are far more lightweight, faster, and use less disk space on the server. Unfortunately, automatic labels are not supported in 2006.1, so you will need to upgrade your server in order to use this functionality.

            People

            Assignee:
            rpetti Rob Petti
            Reporter:
            ashitshah16 Ashit Shah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: