message: Disabled artifact upload on feature branches as test was successful. Upload will be performed only from develop and master builds.
diff: @@ -300,35 +300,36 @@ pipeline {
  source: "${WORKSPACE}/src/Spectrecoin",
  destination: "${WORKSPACE}/src/bin")
  ])
  +// No upload on feature branches, only from develop and master
  // archiveArtifacts allowEmptyArchive: true, artifacts: 'Spectrecoin.zip, src/installer/Spectrecoin.msi'
  - }
  - }
  - }
  - stage('Upload delivery') {
  - agent {
  - label "housekeeping"
  - }
  - steps {
  - script {
  - sh "wget https://ci.spectreproject.io/job/Spectrecoin/job/spectre/job/develop/lastSuccessfulBuild/artifact/Spectrecoin-latest.zip"
  - sh "docker run \\\n" +
  - "--rm \\\n" +
  - "-e GITHUB_TOKEN=${GITHUB_TOKEN} \\\n" +
  - "-v ${WORKSPACE}:/filesToUpload \\\n" +
  - "spectreproject/github-uploader:latest \\\n" +
  - "github-release upload \\\n" +
  - " --user spectrecoin \\\n" +
  - " --repo spectre \\\n" +
  - " --tag latest \\\n" +
  - " --name \"Spectrecoin-latest-WIN64.zip\" \\\n" +
  - " --file /filesToUpload/Spectrecoin-latest.zip \\\n" +
  - " --replace"
  - sh "rm -f Spectrecoin-latest.zip"
  - }
  - }
  - post {
  - always {
  - sh "docker system prune --all --force"
  +// }
  +// }
  +// }
  +// stage('Upload delivery') {
  +// agent {
  +// label "housekeeping"
  +// }
  +// steps {
  +// script {
  +// sh "wget https://ci.spectreproject.io/job/Spectrecoin/job/spectre/job/${BRANCH_NAME}/lastSuccessfulBuild/artifact/Spectrecoin-latest.zip"
  +// sh "docker run \\\n" +
  +// "--rm \\\n" +
  +// "-e GITHUB_TOKEN=${GITHUB_TOKEN} \\\n" +
  +// "-v ${WORKSPACE}:/filesToUpload \\\n" +
  +// "spectreproject/github-uploader:latest \\\n" +
  +// "github-release upload \\\n" +
  +// " --user spectrecoin \\\n" +
  +// " --repo spectre \\\n" +
  +// " --tag latest \\\n" +
  +// " --name \"Spectrecoin-latest-WIN64.zip\" \\\n" +
  +// " --file /filesToUpload/Spectrecoin-latest.zip \\\n" +
  +// " --replace"
  +// sh "rm -f Spectrecoin-latest.zip"
  +// }
  +// }
  +// post {
  +// always {
  +// sh "docker system prune --all --force"
  }
  }
  }
  