• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • image-gallery-plugin
    • MacOS 10.10.5
      Jenkins 1.634
      image gallery plugin 1.2

      Our configuration uses this plugin on archived artifacts. In the configuration, we don't define an image width.

      In latest build, the images are displayed correctly (full size).
      In previous builds, the images are not visible; inspecting the page source code shows that image width is set to "0".

      <h2>Screenshots</h2>
      <a href="artifact/reports/iPad/Test_AddFavoriteContact/20151030_161534.368//Screen_Error.jpeg" title="reports/iPad/Test_AddFavoriteContact/20151030_161534.368//Screen_Error.jpeg" class="gallery"><img src="artifact/reports/iPad/Test_AddFavoriteContact/20151030_161534.368//Screen_Error.jpeg" width="0" title="Image 0" /></a>
      

      Changing the size in the source code (using Chrome inspector, for example) brings back the images.

        1. imageWidth.patch
          0.9 kB
        2. no_work.jpg
          no_work.jpg
          233 kB
        3. works.jpg
          works.jpg
          278 kB

          [JENKINS-31364] Image width is set to "0" in previous builds

          Frédéric Dubuisson created issue -

          I've also noticed that the width value is not properly stored in the job configuration; the field is empty every time you go to edit the job again.

          nicolas di noia added a comment - I've also noticed that the width value is not properly stored in the job configuration; the field is empty every time you go to edit the job again.

          Hi there. I have the same issue of nicolas_avenza. Tried different values or format (ie. 100 or 100px) but same result of empty field and images with "original" width.

          Vincenzo De Naro Papa added a comment - Hi there. I have the same issue of nicolas_avenza . Tried different values or format (ie. 100 or 100px) but same result of empty field and images with "original" width.
          Bruno P. Kinoshita made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Hi!

          I couldn't reproduce this issue. Here's the steps I tried:

          • Started the plug-in with Jenkins 1.580.3 (git clone repository + mvn hpi:run)
          • Created a simple job with one Execute Shell build step:

          `wget http://i.imgur.com/d8Y0tS8.png`

          • Added post build action to archive *.png
          • Added post build action to create an image gallery
          • Selected Archived Images Gallery, Gallery title => Test 1, Include pattern => *.png

          Building the project the image is downloaded and archived, and I can see the image + gallery on the first build page.

          Building the project again, generates build #2. I can see the image on the build page of both builds just fine.

          Not sure if I should have chosen a different gallery, or if there is something else that could highlight why I couldn't reproduce it.

          Should be easy to fix once we find what's broken

          Cheers
          Bruno

          Bruno P. Kinoshita added a comment - Hi! I couldn't reproduce this issue. Here's the steps I tried: Started the plug-in with Jenkins 1.580.3 (git clone repository + mvn hpi:run) Created a simple job with one Execute Shell build step: `wget http://i.imgur.com/d8Y0tS8.png ` Added post build action to archive *.png Added post build action to create an image gallery Selected Archived Images Gallery, Gallery title => Test 1, Include pattern => *.png Building the project the image is downloaded and archived, and I can see the image + gallery on the first build page. Building the project again, generates build #2. I can see the image on the build page of both builds just fine. Not sure if I should have chosen a different gallery, or if there is something else that could highlight why I couldn't reproduce it. Should be easy to fix once we find what's broken Cheers Bruno
          Bruno P. Kinoshita made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

          Hi,
          when I saw the issue, it happened only after a few builds; I could have last build and previous one (and possibly previous previous one) with images but the 4th one (and following) didn't have any. This job was run hourly so each build were separated by one hour.
          I'm wondering if this is not related to a cache or some expiration date as in the faulty job, I can't find anymore any image for all my builds (I haven't run one in the last few weeks).

          Maybe this will give you some new ideas

          Thanks,
          Frederic

          Frédéric Dubuisson added a comment - Hi, when I saw the issue, it happened only after a few builds; I could have last build and previous one (and possibly previous previous one) with images but the 4th one (and following) didn't have any. This job was run hourly so each build were separated by one hour. I'm wondering if this is not related to a cache or some expiration date as in the faulty job, I can't find anymore any image for all my builds (I haven't run one in the last few weeks). Maybe this will give you some new ideas Thanks, Frederic

          Hi Frederic! Tried with a different script to see if we a few builds with and without images I could reproduce it, but nothing obvious yet.

          {{#!/bin/bash
          set -x
          rm -rf *.png
          FLAG=`expr ${RANDOM} % 2`
          if [ $FLAG eq 0 ]; then
          echo "Downloading image..."
          wget http://i.imgur.com/d8Y0tS8.png
          else
          echo "Skipped..."
          fi}}

          Thanks anyway
          Bruno

          Bruno P. Kinoshita added a comment - Hi Frederic! Tried with a different script to see if we a few builds with and without images I could reproduce it, but nothing obvious yet. {{#!/bin/bash set -x rm -rf *.png FLAG=`expr ${RANDOM} % 2` if [ $FLAG eq 0 ]; then echo "Downloading image..." wget http://i.imgur.com/d8Y0tS8.png else echo "Skipped..." fi}} Thanks anyway Bruno

          I'm using:

          • jenkins 1.644
          • image gallery plugin 1.2

          I worked perfectly till I've updated to 1.2. Now I'll try to downgrade to 1.1
          Vincenzo

          Vincenzo De Naro Papa added a comment - I'm using: jenkins 1.644 image gallery plugin 1.2 I worked perfectly till I've updated to 1.2. Now I'll try to downgrade to 1.1 Vincenzo

          I tried to downgrade the plugin to 1.1 and I got this:

          MissingFieldException: No field 'imageWidthText' found in class 'org.jenkinsci.plugins.imagegallery.imagegallery.ArchivedImagesGalleryBuildAction'

          I tried to Dismiss and set Image Width again without luck.
          Thanks
          Vincenzo

          Vincenzo De Naro Papa added a comment - I tried to downgrade the plugin to 1.1 and I got this: MissingFieldException: No field 'imageWidthText' found in class 'org.jenkinsci.plugins.imagegallery.imagegallery.ArchivedImagesGalleryBuildAction' I tried to Dismiss and set Image Width again without luck. Thanks Vincenzo

            kinow Bruno P. Kinoshita
            fdubuisson Frédéric Dubuisson
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: