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

publish over ssh can't find a promotion folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • None
    • linux

      When publishing artefacts, plugin complains there is no workspace directory and that i maybe have not archived the artifacts. However they are archived, as logs states a few lines before:

      Started by user delbd
      Building in workspace /home/intrarmi/.jenkins/workspace/Fronts
      Promoting Fronts #42
      Archiving artifacts
      build hudson.tasks.ArtifactArchiver@4e39b2f6 SUCCESS
      SSH: Connecting from host [ci-me.oma.be]
      SSH: Connecting with configuration [ansible main repo] ...
      SSH: Disconnecting configuration [ansible main repo] ...
      ERROR: Exception when publishing, exception message [The base directory does not exist. If this is a promotion, have you "Archived the artifacts"?]
      build BapSshPromotionPublisherPlugin[delegate=BapSshPublisherPlugin[consolePrefix=SSH: ,delegate=BPInstanceConfig[publishers=[BapSshPublisher[configName=ansible main repo,verbose=false,transfers=[BapSshTransfer[sourceFiles=**/*.rpm,excludes=,removePrefix=,remoteDirectory=builds/production,remoteDirectorySDF=false,flatten=true,cleanRemote=false,noDefaultExcludes=false,makeEmptyDirs=false,patternSeparator=[, ]+,execCommand=,execTimeout=120000,pseudoTty=false]],useWorkspaceInPromotion=false,usePromotionTimestamp=false,retry=<null>,label=<null>,credentials=<null>]],continueOnError=false,failOnError=false,masterNodeName=<null>,alwaysPublishFromMaster=false,paramPublish=<null>]]] UNSTABLE
      Finished: UNSTABLE
      

      If i go to jenkins server and check the promotion folder, i can see that the artifactcs have, indeed, been archived:

      [intrarmi@ci-me archive]$ pwd
      /home/intrarmi/.jenkins/jobs/Fronts/promotions/production/builds/2014-04-23_14-32-10/archive
      [intrarmi@ci-me archive]$ ls target/rpm/FrontHD/RPMS/noarch/FrontHD-0.0.2-SNAPSHOT20140423121624.noarch.rpm -l
      -rw-r--r--. 1 intrarmi mecal 67723701 Apr 23 14:32 target/rpm/FrontHD/RPMS/noarch/FrontHD-0.0.2-SNAPSHOT20140423121624.noarch.rpm
      

      Attached is a screenshot of my config.

            Unassigned Unassigned
            tchize David Delbecq
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: