[Python] What is the folder structure and files contains in it we get after compiling the...

Discussão em 'Python' iniciado por Stack, Junho 24, 2025.

  1. Stack

    Stack Membro Participativo

    My Build Pipeline:

    trigger:
    branches:
    include:
    - ks-azurefunctionappnewvsn

    pool:
    vmImage: 'ubuntu-latest'

    steps:
    - task: UsePythonVersion@0
    inputs:
    versionSpec: '3.12'
    addToPath: true
    architecture: 'x64'

    - script: |
    python -m venv .venv
    source .venv/bin/activate
    pip install --upgrade pip
    pip install -r $(System.DefaultWorkingDirectory)/requirements.txt
    displayName: 'Install dependencies'

    - script: |
    echo "current directory"
    pwd
    echo "files and folder under the directory"
    ls -al
    displayName: 'Command Line Script'

    - task: ArchiveFiles@2
    inputs:
    rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
    includeRootFolder: false
    archiveType: 'zip'
    archiveFile: '$(Build.ArtifactStagingDirectory)/build$(Build.BuildId).zip'
    replaceExistingArchive: true
    displayName: 'Archive Function App'

    - task: PublishBuildArtifacts@1
    inputs:
    PathtoPublish: '$(Build.ArtifactStagingDirectory)/build$(Build.BuildId).zip'
    ArtifactName: 'drop'
    publishLocation: 'Container'
    displayName: 'Publish Artifact'


    My Folder Structure of the Function app Code is:

    [​IMG]

    The artifact file produced is 216 MB and the build artifacts zip folder contains below files. Is the below produced artifact correct?

    [​IMG]

    Continue reading...

Compartilhe esta Página