• 2.318

      (For details, please refer to the GDoc link in the Epic description)

      Difficulty: easy
      Skill requirement: JavaScript (basic), Jelly (basic)

      Move the script tags UpdateCenter/index.jelly#L35-L42 and UpdateCenter/index.jelly#L45-L77 to a single separate file.

      To inject separate file into Jelly, you can use <st:adjunct includes=...

          [JENKINS-66728] Un-inlining UpdateCenter/index.jelly

          Wadeck Follonier created issue -
          Wadeck Follonier made changes -
          Description Original: _(For details, please refer to the GDoc link in the Epic description)_

          *Difficulty*: easy.
          *Skill requirement*: JavaScript (basic), Jelly (basic)

          Move the script tag [BuildTimelineWidget/control.jelly#L40-L167|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/BuildTimelineWidget/control.jelly#L40-L167] to its own file.

          To inject separate file into Jelly, you can use {{<st:adjunct includes= ... }}
          One variable injected, you will need to use advice from https://www.jenkins.io/doc/developer/security/xss-prevention/#passing-values-to-javascript
          New: _(For details, please refer to the GDoc link in the Epic description)_

          *Difficulty*: easy.
          *Skill requirement*: JavaScript (basic), Jelly (basic)

          Move the script tags [UpdateCenter/index.jelly#L35-L42|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L35-L42] and [UpdateCenter/index.jelly#L45-L77|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L45-L77] to a single separate file.

          To inject separate file into Jelly, you can use {{<st:adjunct includes= ... }}
          One variable injected, you will need to use advice from https://www.jenkins.io/doc/developer/security/xss-prevention/#passing-values-to-javascript
          Wadeck Follonier made changes -
          Description Original: _(For details, please refer to the GDoc link in the Epic description)_

          *Difficulty*: easy.
          *Skill requirement*: JavaScript (basic), Jelly (basic)

          Move the script tags [UpdateCenter/index.jelly#L35-L42|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L35-L42] and [UpdateCenter/index.jelly#L45-L77|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L45-L77] to a single separate file.

          To inject separate file into Jelly, you can use {{<st:adjunct includes= ... }}
          One variable injected, you will need to use advice from https://www.jenkins.io/doc/developer/security/xss-prevention/#passing-values-to-javascript
          New: _(For details, please refer to the GDoc link in the Epic description)_

          *Difficulty*: easy
          *Skill requirement*: JavaScript (basic), Jelly (basic)

          Move the script tags [UpdateCenter/index.jelly#L35-L42|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L35-L42] and [UpdateCenter/index.jelly#L45-L77|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L45-L77] to a single separate file.

          To inject separate file into Jelly, you can use {{<st:adjunct includes= ... }}
          One variable injected, you will need to use advice from https://www.jenkins.io/doc/developer/security/xss-prevention/#passing-values-to-javascript
          Wadeck Follonier made changes -
          Description Original: _(For details, please refer to the GDoc link in the Epic description)_

          *Difficulty*: easy
          *Skill requirement*: JavaScript (basic), Jelly (basic)

          Move the script tags [UpdateCenter/index.jelly#L35-L42|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L35-L42] and [UpdateCenter/index.jelly#L45-L77|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L45-L77] to a single separate file.

          To inject separate file into Jelly, you can use {{<st:adjunct includes= ... }}
          One variable injected, you will need to use advice from https://www.jenkins.io/doc/developer/security/xss-prevention/#passing-values-to-javascript
          New: _(For details, please refer to the GDoc link in the Epic description)_

          *Difficulty*: easy
          *Skill requirement*: JavaScript (basic), Jelly (basic)

          Move the script tags [UpdateCenter/index.jelly#L35-L42|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L35-L42] and [UpdateCenter/index.jelly#L45-L77|https://github.com/jenkinsci/jenkins/blob/726a0e3ec4c6d8ac8985144f20aa4b330dc9429b/core/src/main/resources/hudson/model/UpdateCenter/index.jelly#L45-L77] to a single separate file.

          To inject separate file into Jelly, you can use {{<st:adjunct includes=...}}
          One variable injected, you will need to use advice from https://www.jenkins.io/doc/developer/security/xss-prevention/#passing-values-to-javascript
          megathaum made changes -
          Assignee New: megathaum [ megathaum ]

          Kristóf Sz. added a comment -

          Hy! Do you think I can take on this task? I see its assigned, but I think there is no progress on it.

          Also I'm new to jelly, but based on the linked docs, I cant see an injected variable. Did that line just remain from the copy-paste?

          Kristóf Sz. added a comment - Hy! Do you think I can take on this task? I see its assigned, but I think there is no progress on it. Also I'm new to jelly, but based on the linked docs, I cant see an injected variable. Did that line just remain from the copy-paste?
          megathaum made changes -
          Assignee Original: megathaum [ megathaum ]

          megathaum added a comment -

          Hi! Please take it. I've not yet started on this. I've unassigned it and will take up another one. Thanks!

          megathaum added a comment - Hi! Please take it. I've not yet started on this. I've unassigned it and will take up another one. Thanks!
          Kristóf Sz. made changes -
          Assignee New: Kristóf Sz. [ littletof ]

          Kristóf Sz. added a comment -

          Kristóf Sz. added a comment - Thanks! Opened a PR:  https://github.com/jenkinsci/jenkins/pull/5848

            littletof Kristóf Sz.
            wfollonier Wadeck Follonier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: