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

Inedo ProGet plugin when uploading Package file to proget I'm getting 504 Gateway Time-out Error

      Hi all,

      I'm having declarative pipeline in my Jenkinsfile code.  I changed my Jenkinsfile code as below, because I wanted to archive my artifact file by using Inedo ProGet plugin into my Proget site.   I already configured Proget in Jenkins with API key and installed the plugin. 

      I have added the ProGet API Key settings into the Jenkins' system config settings and it's testing the connection successfully. 

       

      Below is the code change I added in my Jenkinsfile.

      So as above script underline shows the way I'm getting my build artifact's Version Number. 

      Also below is the new .upack Package file I'm creating with the PackageName "JenkinsPackage.upack" for the purpose of upload to the Proget site.
       
      But here the issue I'm facing is when I'm running my build job and it's not success and failing the Proget Upload command with below error log message from Console-Output. 

       

       

       Please anyone assist me on this ?  What's the issue I'm having here, what blocking me to uploading my package file into Proget site ?

        1. proget_22Capture.PNG
          proget_22Capture.PNG
          63 kB
        2. proget1_Capture.PNG
          proget1_Capture.PNG
          162 kB
        3. Capture.PNG
          Capture.PNG
          97 kB
        4. image-2020-02-20-08-24-40-897.png
          image-2020-02-20-08-24-40-897.png
          37 kB
        5. image-2020-02-20-08-21-46-822.png
          image-2020-02-20-08-21-46-822.png
          223 kB
        6. image-2020-02-20-08-19-00-759.png
          image-2020-02-20-08-19-00-759.png
          114 kB
        7. image-2020-02-20-08-10-02-266.png
          image-2020-02-20-08-10-02-266.png
          31 kB
        8. image-2020-02-20-08-02-45-754.png
          image-2020-02-20-08-02-45-754.png
          124 kB

          [JENKINS-61167] Inedo ProGet plugin when uploading Package file to proget I'm getting 504 Gateway Time-out Error

          Amila Gunathilake created issue -
          Amila Gunathilake made changes -
          Attachment New: image-2020-02-20-08-10-02-266.png [ 50371 ]
          Amila Gunathilake made changes -
          Attachment New: image-2020-02-20-08-19-00-759.png [ 50372 ]
          Amila Gunathilake made changes -
          Attachment New: image-2020-02-20-08-21-46-822.png [ 50373 ]
          Amila Gunathilake made changes -
          Description Original: Hi all,

          I'm having declarative pipeline in my Jenkinsfile code.  I changed my Jenkinsfile code as below, because I wanted to archive my artifact file by using Inedo ProGet plugin into my Proget site.  

          Below is the code change I added in my Jenkinsfile.
          !image-2020-02-20-08-02-45-754.png!
          h1.  
          New: Hi all,

          I'm having declarative pipeline in my Jenkinsfile code.  I changed my Jenkinsfile code as below, because I wanted to archive my artifact file by using Inedo ProGet plugin into my Proget site.   I already configured Proget in Jenkins with API key and installed the plugin. 

          I have added the ProGet API Key settings into the Jenkins' system config settings and it's testing the connection successfully. 
          !image-2020-02-20-08-10-02-266.png!

           

           

           

          *{color:#0747a6}Below is the code change I added in my Jenkinsfile.{color}*
           !image-2020-02-20-08-02-45-754.png!

          So as above script underline shows the way I'm getting my build artifact's Version Number. 

          Also below is the new .upack Package file I'm creating with the PackageName "JenkinsPackage.upack" for the purpose of upload to the Proget site.
            !image-2020-02-20-08-19-00-759.png!
          But here the issue I'm facing is when I'm running my build job and it's not success and failing the Proget Upload command with below error log message from Console-Output. 

          !image-2020-02-20-08-21-46-822.png!

           

           

          {color:#d24939} Please anyone assist me on this ?  What's the issue I'm having here, what blocking me to uploading my package file into Proget site ?{color}
          Amila Gunathilake made changes -
          Attachment New: image-2020-02-20-08-24-40-897.png [ 50374 ]
          Amila Gunathilake made changes -
          Description Original: Hi all,

          I'm having declarative pipeline in my Jenkinsfile code.  I changed my Jenkinsfile code as below, because I wanted to archive my artifact file by using Inedo ProGet plugin into my Proget site.   I already configured Proget in Jenkins with API key and installed the plugin. 

          I have added the ProGet API Key settings into the Jenkins' system config settings and it's testing the connection successfully. 
          !image-2020-02-20-08-10-02-266.png!

           

           

           

          *{color:#0747a6}Below is the code change I added in my Jenkinsfile.{color}*
           !image-2020-02-20-08-02-45-754.png!

          So as above script underline shows the way I'm getting my build artifact's Version Number. 

          Also below is the new .upack Package file I'm creating with the PackageName "JenkinsPackage.upack" for the purpose of upload to the Proget site.
            !image-2020-02-20-08-19-00-759.png!
          But here the issue I'm facing is when I'm running my build job and it's not success and failing the Proget Upload command with below error log message from Console-Output. 

          !image-2020-02-20-08-21-46-822.png!

           

           

          {color:#d24939} Please anyone assist me on this ?  What's the issue I'm having here, what blocking me to uploading my package file into Proget site ?{color}
          New: Hi all,

          I'm having declarative pipeline in my Jenkinsfile code.  I changed my Jenkinsfile code as below, because I wanted to archive my artifact file by using Inedo ProGet plugin into my Proget site.   I already configured Proget in Jenkins with API key and installed the plugin. 

          I have added the ProGet API Key settings into the Jenkins' system config settings and it's testing the connection successfully. 
          !image-2020-02-20-08-24-40-897.png!

           

           

           

          *{color:#0747a6}Below is the code change I added in my Jenkinsfile.{color}*
           !image-2020-02-20-08-02-45-754.png!

          So as above script underline shows the way I'm getting my build artifact's Version Number. 

          Also below is the new *{color:#0747a6}.upack{color}* Package file I'm creating with the PackageName "{color:#0747a6}JenkinsPackage.upack{color}" for the purpose of upload to the Proget site.
             !image-2020-02-20-08-19-00-759.png!
           But here the issue I'm facing is when I'm running my build job and it's not success and failing the Proget Upload command with below error log message from Console-Output. 

          !image-2020-02-20-08-21-46-822.png!

           

           

          {color:#d24939} Please anyone assist me on this ?  What's the issue I'm having here, what blocking me to uploading my package file into Proget site ?{color}

          Andrew Sumner added a comment - - edited

          I will have a look at this over the weekend and get back to you as soon as I can. 

          Could you let me know the versions you are using for the following:

          • Jenkins
          • Jenkins ProGet Plugin
          • ProGet application

          I know there is an issue with large files (over 200MB) that I'm hoping to look into soon, however I don't think this would explain your issue.

          Andrew Sumner added a comment - - edited I will have a look at this over the weekend and get back to you as soon as I can.  Could you let me know the versions you are using for the following: Jenkins Jenkins ProGet Plugin ProGet application I know there is an issue with large files (over 200MB) that I'm hoping to look into soon, however I don't think this would explain your issue.

          Amila Gunathilake added a comment - - edited

          Hi Mr. andrewsumner,

           * My Current Jenkins Version - Jenkins ver. 2.220
           * Jenkins ProGet Plugin Version -  1.3
           * ProGet application  -  Version 5.2.24 (Build 6)

          I don't think file size will be a problem here because my package file (JenkinsPackage.upack) size is just 58 mb.

          also is there any issue with the way I'm getting the $FINANCIALVERSION number here?  Because I'm using a customize version number instead of using ${BUILD_NUMBER} as version. .  

          Amila Gunathilake added a comment - - edited Hi Mr.  andrewsumner ,  * My Current Jenkins Version -  Jenkins ver. 2.220  * Jenkins ProGet Plugin Version -  1.3  * ProGet application  -  Version 5.2.24 (Build 6) I don't think file size will be a problem here because my package file (JenkinsPackage.upack) size is just 58 mb. also is there any issue with the way I'm getting the $FINANCIALVERSION number here?  Because I'm using a customize version number instead of using ${BUILD_NUMBER} as version. .  

          Andrew Sumner added a comment - - edited

          I haven't been able to duplicate this issue on my setup - the best I have come up with is to get a 400 level errors when I put in invalid parameters for ProGet.

          Can you create a new pipeline with the following code (you may need to tweak some values) as this works for me, I just want to understand if it's a problem with what you are sending or an access issue. 

           
          pipeline {
            agent any
            stages {
              stage('Main') {
                steps {
                  bat '''DEL *.TXT /Q
                      if not exist "subfolder" mkdir subfolder
                      DEL *.upack /Q
                      ECHO Build Tag: %BUILD_TAG% > subfolder/Example.txt'''
                 
                  script {
                      VERSION = "1.1.${BUILD_NUMBER}"
                  }
                 
                  echo "version = '${VERSION}'"
                 
                  uploadProgetPackage artifacts: 'subfolder/Example.txt', feedName: 'Example1', groupName: 'jenkins/pipleline', packageName: 'JenkinsPackage', version: "${VERSION}"
                }
              }
            }
          }
          Sorry I don't have a better answer for you, however I'm sure we can get to the bottom of this.

          Is there anything else you can tell me about your setup - ProGet or the Jenkins build? eg:

          1. I assume they are on the same network - no firewalls in they way
          2. Is the jenkins job running on an agent or on the Jenkins master node
          3. ?

           

           

          Andrew Sumner added a comment - - edited I haven't been able to duplicate this issue on my setup - the best I have come up with is to get a 400 level errors when I put in invalid parameters for ProGet. Can you create a new pipeline with the following code (you may need to tweak some values) as this works for me, I just want to understand if it's a problem with what you are sending or an access issue.    pipeline {   agent any   stages {     stage('Main') {       steps {         bat '''DEL *.TXT /Q             if not exist "subfolder" mkdir subfolder             DEL *.upack /Q             ECHO Build Tag: %BUILD_TAG% > subfolder/Example.txt'''                 script {             VERSION = "1.1.${BUILD_NUMBER}"         }                 echo "version = '${VERSION}'"                 uploadProgetPackage artifacts: 'subfolder/Example.txt', feedName: 'Example1', groupName: 'jenkins/pipleline', packageName: 'JenkinsPackage', version: "${VERSION}"       }     }   } } Sorry I don't have a better answer for you, however I'm sure we can get to the bottom of this. Is there anything else you can tell me about your setup - ProGet or the Jenkins build? eg: I assume they are on the same network - no firewalls in they way Is the jenkins job running on an agent or on the Jenkins master node ?    

            andrewsumner Andrew Sumner
            amila_devops Amila Gunathilake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: