|
|
|
@ -15,10 +15,7 @@ def file_write(file_name,text_content): |
|
|
|
|
|
|
|
def dingtalk(cdn_url,packageUrl): |
|
|
|
tpl_for_dingtalk=f''' |
|
|
|
<font color=[TPL_STATUS_COLOR] size="3"> |
|
|
|
下载地址: (<a href="{cdn_url}{packageUrl}" target="_blank">{cdn_url}{packageUrl}</a>) |
|
|
|
</font> |
|
|
|
|
|
|
|
下载地址: (<a href="{cdn_url}{packageUrl}" |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
@ -162,10 +159,11 @@ def get_the_last_windowsApp_GITversion(name): |
|
|
|
break # 找到第一个满足条件的对象后停止遍历 |
|
|
|
|
|
|
|
print('正在git获取上一个版本的代码:') |
|
|
|
os.system('mkdir -p /tmp/theLastCode/') |
|
|
|
os.system('cd /tmp/theLastCode/ && git clone ' + os.getenv('DRONE_GIT_HTTP_URL') + ' .' ) |
|
|
|
os.system('ls && pwd' ) |
|
|
|
os.system('cd /tmp/theLastCode/ && git checkout ' + the_last_windowsAppZIP_GITversion) |
|
|
|
os.system('cp -rp /drone/src/ /tmp/theLastCode') |
|
|
|
os.chdir('/tmp/theLastCode/') |
|
|
|
# os.system('git clone ' + os.getenv('DRONE_GIT_HTTP_URL') + ' .' ) |
|
|
|
os.system('git checkout -b ' + + ' ' + the_last_windowsAppZIP_GITversion) |
|
|
|
os.system('ls && pwd && git describe --abbrev=0 --tags' ) |
|
|
|
return the_last_windowsAppZIP_GITversion |
|
|
|
else: |
|
|
|
return None |
|
|
|
|