How can I change dll names of ZIPPED files to avoid name conflict from naming web jobs?

Viewed 32

I am coming from another question but I am not sure whether creating a new question is a good option or not I have to check my previous question as answered because of the correct answer. That`s the reason Why I am creating a new question. I guess someone gives me a minus for that but be sure this question is similar but different stop minus clicking before reading. my purpose is "1 Web App with 6 listeners (WebJobs)"

this is my yaml file :

trigger:
  - main

pool:
  vmImage: ubuntu-latest

parameters:
  - name: locations
    type: object
    default: [Berlin, Hamburg, Südwestfalen, Weser-Ems, Ostfalen, Westfalen]

steps:
  - task: DotNetCoreCLI@2
    inputs:
      command: "build"
      projects: "**/*.csproj"
      arguments: "--output $(Build.BinariesDirectory)/publish_output --configuration Release"
  - ${{ each location in parameters.locations }}:
      - task: ArchiveFiles@2
        inputs:
          rootFolderOrFile: "$(Build.BinariesDirectory)/publish_output"
          includeRootFolder: false
          archiveType: "zip"
          archiveFile: "$(Build.ArtifactStagingDirectory)/mywebjob-${{ location  }}-$(Build.BuildId).zip"
          replaceExistingArchive: true

      - task: PublishBuildArtifacts@1
        inputs:
          PathtoPublish: "$(Build.ArtifactStagingDirectory)"
          ArtifactName: "drop"
          publishLocation: "Container"

I am creating 6 different zip file for upload zip files to webjobs under 1 app service but when I check zip files :

enter image description here

checking zip files I am realizing that foreach loop is putting "-berlin" and "-hamburg" at the end of the zip files as suffix.

enter image description here

When I deploy these zip files under 1 web app, What will happen? Does it create a dll unique naming problems because webjobs should be unique? As far as I know, we can not add the same named webjobs.

0 Answers
Related