小编BRN*_*TZN的帖子

在jenkins文件中使用Jenkins商店的凭据

我在詹金斯做了一个多分支管道项目.我需要使用两个存储库,并且都需要凭据.

我在repository1中创建了一个Jenkins文件:

node ('label1'){
  stage 'sanity check'
  sh 'echo sanity check'
  stage 'checkout other repository'
  checkout([
      $class: 'GitSCM', branches: [[name: '*/master']],
      userRemoteConfigs: [[url: 'https://BRNTZN@bitbucket.org/BRNTZN/repository2.git'],[credentialsId:'23b2eed1-2863-49d5-bc7b-bcccb9ad914d']]
  ])
  stage 'log results'
  sh 'echo result = OK'
 }
Run Code Online (Sandbox Code Playgroud)

当我将此文件推送到repository1的分支并启动构建时,我在Jenkins中收到以下错误:

Branch indexing
Setting origin to https://BRNTZN@bitbucket.org/BRNTZN/repository1.git
Fetching origin...
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://BRNTZN@bitbucket.org/BRNTZN/repository1.git # timeout=10
Fetching upstream changes from https://BRNTZN@bitbucket.org/BRNTZN/repository1.git
 > git --version # timeout=10
using .gitcredentials to set credentials
 > git …
Run Code Online (Sandbox Code Playgroud)

git groovy jenkins jenkins-pipeline

14
推荐指数
2
解决办法
5万
查看次数

Android工作室中的Android视图显示"无需显示",也无法再运行应用程序

我用vcs,git尝试了一些东西,不知道我做了什么.突然间,我的Android视图没有显示任何内容: Android视图

然而,这是我的项目视图正确显示所有内容:

项目视图

我也无法运行我的应用程序,它提示我运行配置. 运行配置对话框

不知道我做错了什么.

编辑:我修复了它,幸运的是我事先备份了项目,只需用备份文件夹替换项目的整个文件夹.

android android-studio

3
推荐指数
1
解决办法
4339
查看次数