• Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • release-plugin
    • None

      See this blog post for details. Prototype will eventually be removed from Jenkins core. To prepare for this transition, this plugin must be migrated away from Prototype. The blog post contains instructions on how to find and eliminate usages of Prototype. In this plugin, the following usages of Prototype have been identified. This may not be an exhaustive list:

      ./src/main/resources/hudson/plugins/release/pipeline/ReleaseStep/config.jelly:36:                var div = $$('params');
      ./src/main/resources/hudson/plugins/release/pipeline/ReleaseStep/config.jelly:37:                new Ajax.Request('${descriptor.descriptorUrl}/parameters?job=' + encodeURIComponent($$('${jobFieldId}').value) + '&context=' + encodeURIComponent('${descriptor.context}'), {
      ./src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly:92:                                        inputElement = $$('form[action="submit"] input[value="'+pName+'"]')[0];     
      ./src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly:96:                                                if(inputElement.next().tagName == "SELECT"){
      ./src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly:98:                                                        inputElement.next('select').getElementsBySelector('option[value="'+fieldValue+'"]')[0].selected="selected";
      ./src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly:100:                                                       inputElement.next('input').value=fieldValue;
      ./src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly:108:                                                       inputElement.next('.jenkins-checkbox').getElementsBySelector('input')[0].checked=fieldValue;
      ./src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly:119:                                       optionsArray = $$('form[action="submit"] input[value="'+pName+'"]')[0].next('select').getElementsBySelector('option');
      ./src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly:120:                                       optionsArray.each(function(item){
      ./src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly:126:                                               inputFields = $$('form[action="submit"] .jenkins-input');
      ./src/main/resources/hudson/plugins/release/ReleaseWrapper/ReleaseAction/index.jelly:127:                                               inputFields.each(function(item) {
      
      

          [JENKINS-71304] Remove usages of Prototype from Release

          Basil Crow created issue -
          Tim Jacomb made changes -
          Attachment New: image-2023-06-30-11-25-34-637.png [ 60692 ]
          Tim Jacomb made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Tim Jacomb made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Tim Jacomb made changes -
          Remote Link New: This issue links to "https://github.com/jenkinsci/release-plugin/pull/42 (Web Link)" [ 28768 ]
          Tim Jacomb made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Tim Jacomb made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]
          Basil Crow made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Basil Crow made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Tim Jacomb made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Tim Jacomb made changes -
          Remote Link New: This issue links to "https://github.com/jenkinsci/release-plugin/pull/44 (Web Link)" [ 28824 ]

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: