title: Jenkins Android Gradle build time download error
body: <p>Linux environment using jenkins android gradle project to build an error</p>
  
  <pre><code>* What went wrong:
  A problem occurred configuring project ':app'.
  &gt; Could not download glide.jar (com.github.bumptech.glide:glide:3.7.0)
     &gt; Could not get resource 'https://jcenter.bintray.com/com/github/bumptech/glide/glide/3.7.0/glide-3.7.0.jar'.
        &gt; Could not GET 'https://jcenter.bintray.com/com/github/bumptech/glide/glide/3.7.0/glide-3.7.0.jar'.
           &gt; repo.jfrog.org: unknown error
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  </code></pre>
  
  <p>I tried to use the wget way to download the link will prompt an error, then I use the sudo way to download the link successfully. So, how can I make jenkins gradle also use the sudo download, or use other solutions</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          jcenter()
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.2.1'
          classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
          classpath 'me.tatarka:gradle-retrolambda:3.2.5'
          classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  
      // Exclude the version that the android plugin depends on.
      configurations.classpath.exclude group: 'com.android.tools.external.lombok'
  }
  
  allprojects {
      repositories {
          jcenter()
          mavenCentral()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  
  
  <p>Please help me, thanks.</p>