azure - 无法从 AzureDevops 管道运行 shell 脚本
问题描述
我是 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 执行的日志。
解决方案
推荐阅读
- node.js - Cheerio webcrawler 获取序列元素
- php - 在 Laravel 刀片模板中查找嵌套结果
- javascript - 如何输出表单值以提醒 JavaScript
- qt - QTreeView,当鼠标悬停在一行上时如何调用动作?
- javascript - 如何使用 JavaScript 切换 CSS 中的类?
- bash - 在用于 greping 文件的 for 循环和使用文件查询 greping 文件之间有什么更快/更好的做法?
- python - 我的代码没有打印“未找到匹配项”,为什么?
- arrays - Swift - 向字典中的数组添加值
- java - 仅从 GitHub API 返回选定的字段
- javascript - 有没有办法可以预览我的 html 文件?