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

'logDeprecationWarning is deprecated' warnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      Hi,

      I have some DSL code which looks like:

      jobFactory.multiJob("MainJob")
      {
      	...
      	steps
      	{
      		phase("Phase A") {
      			job("JobA") { sameNode() }
      		}
      
      		phase("PhaseB") {
      			job("jobB") {
      				prop("PLATFORM", 'Win32')
      				prop("CONFIGURATION", 'Release')
      				sameNode()
      			}
      			continuationCondition("UNSTABLE")
      		}
      	}
      	...
      }
      

      When I run this code from a seed job, I get the following warnings:

      Warning: (Seed.groovy, line 35) logDeprecationWarning is deprecated
      Warning: (Seed.groovy, line 39) logDeprecationWarning is deprecated
      ...
      

      Where the line numbers correspond to all the "job" and "prop" lines. Am I doing something wrong? I think these warnings appeared when I upgraded the Job DSL addon to version 1.39.

            daspilker Daniel Spilker
            vvv444 Vasili Galka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: