在$(System.DefaultWorkingDirectory)上找不到文件

时间:2019-12-05 12:23:25

标签: azure

我有一个构建步骤:

        ServerAdmin ****
        DocumentRoot /var/www/html
    ServerName blog.xxxx.com
    ServerAlias blog.xxx.com

        Redirect permanent / https://domain/blogs

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin ***
    ServerName blog.xxx.com
        DocumentRoot /var/www/html

        SSLEngine on
        SSLCertificateFile certificate.crt
        SSLCertificateKeyFile privatekey.key

        <Directory /var/www/html/>

            Options FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>```

在我的发布管道中,我有:

- task: ArchiveFiles@2
  inputs:
    rootFolderOrFile: "packages/web/apps/suite/build"
    includeRootFolder: true
    archiveType: "zip"
    archiveFile: $(Build.ArtifactStagingDirectory)/branchName.zip"
    replaceExistingArchive: true
  displayName: Archive feature release

当我运行构建时:

  

归档文件:构建   D:\ a_tasks \ ArchiveFiles_d8b84976-e99a-4b86-b885-4849694435b0 \ 2.159.0 \ 7zip \ 7z.exe a -tzip -mx = 5 D:\ a \ 1 \ a \ branchName.zip @D:\ a_temp \ ug18dk0gry6209rv6qdxi529

但是在发行版中:

  

指定的归档文件:D:\ a \ r1 \ a \ branchName.zip无法提取,因为无法访问它:错误:ENOENT:没有这样的文件或目录,stat'D:\ a \ r1 \ a \ branchName.zip'

如何在发布管道中查找在构建过程中创建的文件?

0 个答案:

没有答案