我有一个jenkins作业,带有参数“github_username”,它被传递给一个python脚本,下面是一行。我使用了一个字符串参数,但脚本是针对用户名的每个字母运行的,而不是针对用户名作为单个单词运行的。 有更好的办法吗
users = os.environ.get("github_username")
import os
## Reading all members from file
## with open('users.txt') as file:
## users = file.read().splitlines()
## users = os.environ.get('github_username')
users = os.environ['github_username']
试试这个:
在您的管道中,使用以下内容:
相关问题 更多 >
编程相关推荐