无法从AzureDevops管道运行shell脚本

无法从AzureDevops管道运行shell脚本,azure,shell,azure-devops,azure-pipelines,Azure,Shell,Azure Devops,Azure Pipelines,我是AzureDevops管道的新手。我有一个简单的任务,我想运行驻留在我的azure git repo中的shell脚本 steps: - task: Bash@3 inputs: targetType: 'inline' # Optional. Options: filePath, inline #filePath: ./TestProject #arguments: # Optional - script: pwd set +x to

我是AzureDevops管道的新手。我有一个简单的任务,我想运行驻留在我的azure git repo中的shell脚本

    steps:
- task: Bash@3
  inputs:
    targetType: 'inline' # Optional. Options: filePath, inline
    #filePath: ./TestProject
    #arguments: # Optional

- script: 
    pwd
    set +x token.sh
    sh token.sh
构建正在获得成功,但我看不出它选择了sh文件:

Generating script.


10(node:3269) Warning: Use Cipheriv for counter mode of aes-256-ctr


11(node:3269) Warning: Use Cipheriv for counter mode of aes-256-ctr


12(node:3269) Warning: Use Cipheriv for counter mode of aes-256-ctr


13Script contents:


14pwd set +x token.sh sh token.sh


15(node:3269) Warning: Use Cipheriv for counter mode of aes-256-ctr


16========================== Starting Command Output ===========================


17(node:3269) Warning: Use Cipheriv for counter mode of aes-256-ctr


18(node:3269) Warning: Use Cipheriv for counter mode of aes-256-ctr


19(node:3269) Warning: Use Cipheriv for counter mode of aes-256-ctr


20/bin/bash --noprofile --norc /home/vsts/work/_temp/33bdee3d-19de-47b6-8eab-01124cb0a0ed.sh


21/home/vsts/work/1/s


22Finishing: CmdLine
构建成功,但没有sh执行的日志。

我在三个任务(命令行)中测试了它 ,Shell Exec ,痛击 )通过一个简单的
.sh
文件示例,在这些任务中,每件事情都能很好地工作,sh文件执行正常


因此,您能否共享
token.sh
示例文件以供进一步调查?如果有任何个人隐私信息,请保护它。

首先,我在创建管道时无法找到代理工作。第二,我想在远程计算机上执行它,我如何实现它?第一:这里我用的是,你用的是yaml,你可以参考。;第二:在远程机器上运行shell命令,您可以参考这个@akshay vithalkar,好几天没有收到您的响应,请您分享您关于这个问题的最新信息好吗?如果您有任何问题,请随时在这里分享。