jenkins采坑记录

鲜于承基
2023-12-01

1.下载安装gradle

https://gradle.org/install/

gradle -version

Welcome to Gradle 6.7.1!

Here are the highlights of this release:
 - File system watching is ready for production use
 - Declare the version of Java your build requires
 - Java 15 support

For more details see https://docs.gradle.org/6.7.1/release-notes.html


------------------------------------------------------------
Gradle 6.7.1
------------------------------------------------------------

Build time:   2020-11-16 17:09:24 UTC
Revision:     2972ff02f3210d2ceed2f1ea880f026acfbab5c0

Kotlin:       1.3.72
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM:          15.0.1 (Oracle Corporation 15.0.1+9-18)
OS:           Linux 5.4.0-1031-azure amd64

2.解压

mdkir -p /opt/gradle

unzip -d /opt/gradle  gradle-6.7.1-bin.zip
 

sudo unzip -d /opt/gradle /usr/local/tool/gradle-6.7.1-bin.zip  
Archive:  /usr/local/tool/gradle-6.7.1-bin.zip
   creating: /opt/gradle/gradle-6.7.1/
  inflating: /opt/gradle/gradle-6.7.1/LICENSE  
  inflating: /opt/gradle/gradle-6.7.1/NOTICE  
  inflating: /opt/gradle/gradle-6.7.1/README  
   creating: /opt/gradle/gradle-6.7.1/init.d/
  inflating: /opt/gradle/gradle-6.7.1/init.d/readme.txt  
   creating: /opt/gradle/gradle-6.7.1/bin/
  inflating: /opt/gradle/gradle-6.7.1/bin/gradle  
  inflating: /opt/gradle/gradle-6.7.1/bin/gradle.bat  
   creating: /opt/gradle/gradle-6.7.1/lib/
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-runtime-api-info-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-installation-beacon-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-api-metadata-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-launcher-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-kotlin-dsl-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-bootstrap-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-build-events-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-tooling-api-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-core-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-file-collections-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-execution-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-model-groovy-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-model-core-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-build-cache-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-core-api-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-persistent-cache-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-worker-processes-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-logging-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/ant-1.10.8.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/ant-launcher-1.10.8.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-jvm-services-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-process-services-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-resources-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-messaging-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-native-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-base-services-groovy-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-base-services-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-normalization-java-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/asm-commons-7.3.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/asm-analysis-7.3.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/asm-tree-7.3.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/asm-7.3.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-build-cache-packaging-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/commons-compress-1.19.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/commons-io-2.6.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-build-option-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/commons-lang-2.6.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/fastutil-8.3.0-min.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/groovy-all-1.3-2.5.12.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-file-watching-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-snapshots-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-build-cache-base-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-files-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-hashing-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/guava-27.1-android.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/javax.inject-1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/jansi-1.18.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/jcl-over-slf4j-1.7.28.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-compiler-embeddable-1.3.72-patched-for-gradle-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-stdlib-jdk8-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-reflect-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-stdlib-jdk7-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-stdlib-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/annotations-13.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-kotlin-dsl-tooling-models-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-build-operations-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-base-annotations-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/jsr305-3.0.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/jul-to-slf4j-1.7.28.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kryo-2.24.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/log4j-over-slf4j-1.7.28.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/minlog-1.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/file-events-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/objenesis-2.6.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/slf4j-api-1.7.28.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/trove4j-1.0.20181211.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/xml-apis-1.4.01.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-wrapper-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/gradle-cli-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-scripting-common-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-scripting-jvm-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-scripting-jvm-host-embeddable-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-scripting-compiler-embeddable-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-scripting-compiler-impl-embeddable-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-sam-with-receiver-compiler-plugin-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlinx-metadata-jvm-0.1.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/failureaccess-1.0.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-script-runtime-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-daemon-embeddable-1.3.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-freebsd-amd64-libcpp-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-linux-aarch64-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-linux-amd64-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-osx-amd64-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-windows-amd64-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-windows-amd64-min-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-windows-i386-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-windows-i386-min-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-linux-aarch64-ncurses5-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-linux-aarch64-ncurses6-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-linux-amd64-ncurses5-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/native-platform-linux-amd64-ncurses6-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/file-events-linux-aarch64-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/file-events-linux-amd64-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/file-events-osx-amd64-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/file-events-windows-amd64-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/file-events-windows-amd64-min-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/file-events-windows-i386-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/file-events-windows-i386-min-0.22-milestone-9.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/kotlin-stdlib-common-1.3.72.jar  
   creating: /opt/gradle/gradle-6.7.1/lib/plugins/
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-kotlin-dsl-provider-plugins-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-plugin-development-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-build-init-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-build-profile-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-antlr-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-enterprise-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-ide-play-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-platform-play-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-javascript-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-tooling-api-builders-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-kotlin-dsl-tooling-builders-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-configuration-cache-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-signing-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-tooling-native-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-ide-native-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-ide-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-scala-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-ear-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-testing-native-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-language-native-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-maven-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-ivy-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-jacoco-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-code-quality-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-plugins-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-testing-junit-platform-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-testing-jvm-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-language-scala-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-language-groovy-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-language-java-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-language-jvm-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-platform-jvm-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-composite-builds-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-plugin-use-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-publish-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-testing-base-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-platform-native-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-diagnostics-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-platform-base-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-version-control-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-dependency-management-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-compat-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-core-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/aether-connector-wagon-1.13.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-aether-provider-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/aether-impl-1.13.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/aether-util-1.13.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/aether-spi-1.13.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/aether-api-1.13.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-reporting-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-workers-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-test-kit-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-resources-s3-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-resources-gcs-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-build-cache-http-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-security-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-resources-http-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-resources-sftp-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/asm-util-7.3.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/aws-java-sdk-s3-1.11.633.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/aws-java-sdk-kms-1.11.633.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/aws-java-sdk-core-1.11.633.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/org.eclipse.jgit-5.7.0.202003110725-r.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/bcpg-jdk15on-1.64.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/bcpkix-jdk15on-1.64.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/bcprov-jdk15on-1.64.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/testng-6.3.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/bsh-2.0b6.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/wagon-http-3.0.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/wagon-http-shared-3.0.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/google-api-services-storage-v1-rev136-1.25.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/google-api-client-1.25.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/google-oauth-client-1.25.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/google-http-client-jackson2-1.25.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/google-http-client-1.25.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/httpclient-4.5.10.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/commons-codec-1.13.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gson-2.8.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/plexus-container-default-1.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/junit-4.13.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/hamcrest-core-1.3.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/httpcore-4.4.12.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/ivy-2.3.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jmespath-java-1.11.633.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jackson-databind-2.10.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jackson-annotations-2.10.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jackson-core-2.10.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jatl-0.2.3.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jaxb-impl-2.3.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jcifs-1.3.17.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jcommander-1.72.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/joda-time-2.10.4.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jsch-0.1.55.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/junit-platform-engine-1.6.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/junit-platform-commons-1.6.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/junit-platform-launcher-1.6.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/jzlib-1.1.3.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-plugin-api-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-artifact-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-model-builder-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-model-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-repository-metadata-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-settings-builder-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/maven-settings-3.0.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/wagon-file-3.0.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/wagon-provider-api-3.0.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/nekohtml-1.9.22.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/plexus-sec-dispatcher-1.3.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/plexus-cipher-1.7.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/plexus-classworlds-2.5.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/plexus-component-annotations-1.5.5.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/plexus-interpolation-1.14.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/plexus-utils-3.1.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/dd-plist-1.21.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/pmaven-common-0.8-20100325.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/pmaven-groovy-0.8-20100325.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/rhino-1.7.10.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/simple-4.1.21.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/snakeyaml-1.17.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/xbean-reflect-3.7.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/xercesImpl-2.12.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/gradle-java-compiler-plugin-6.7.1.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/ion-java-1.0.2.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/apiguardian-api-1.1.0.jar  
  inflating: /opt/gradle/gradle-6.7.1/lib/plugins/opentest4j-1.2.0.jar  

3.还是无法运行gradle

 

Execution failed for task ':compileJava'.
> Could not target platform: 'Java SE 15' using tool chain: 'JDK 8 (1.8)'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings
 

4. 重新安装

sudo apt autoremove jenkins
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  ant ant-optional antlr bnd daemon groovy ivy java-wrappers javascript-common jenkins junit4 libantlr-java libaopalliance-java libapache-pom-java libasm-java libatinject-jsr330-api-java libbcel-java libbcpg-java libbcprov-java
  libbindex-java libbsf-java libbsh-java libcdi-api-java libcommons-cli-java libcommons-codec-java libcommons-collections3-java libcommons-compress-java libcommons-io-java libcommons-lang-java libcommons-lang3-java libcommons-logging-java
  libcommons-parent-java libdd-plist-java libdom4j-java libel-api-java libfelix-framework-java libfelix-gogo-runtime-java libfelix-osgi-obr-java libfelix-resolver-java libfindbugs-java libgeronimo-annotation-1.3-spec-java
  libgeronimo-interceptor-3.0-spec-java libgoogle-gson-java libgpars-groovy-java libgradle-core-java libgradle-plugins-java libguava-java libguice-java libhamcrest-java libhawtjni-runtime-java libhttpclient-java libhttpcore-java
  libjansi-java libjansi-native-java libjarjar-java libjatl-java libjavaewah-java libjaxen-java libjaxp1.3-java libjcifs-java libjcip-annotations-java libjcommander-java libjcsp-java libjformatstring-java libjgit-java libjline2-java
  libjna-java libjna-jni libjs-jquery libjsch-java libjsoup-java libjsp-api-java libjsr166y-java libjsr305-java libjzlib-java libkryo-java libkxml2-java liblogback-java libmaven-parent-java libmaven-resolver-java libmaven-shared-utils-java
  libmaven3-core-java libminlog-java libmultiverse-core-java libnative-platform-java libnative-platform-jni libnekohtml-java libobjenesis-java libosgi-annotation-java libosgi-compendium-java libosgi-core-java libplexus-cipher-java
  libplexus-classworlds-java libplexus-component-annotations-java libplexus-container-default-java libplexus-container-default1.5-java libplexus-interpolation-java libplexus-sec-dispatcher-java libplexus-utils-java libplexus-utils2-java
  libpolyglot-maven-java libqdox-java libreflectasm-java librhino-java libservlet-api-java libservlet3.1-java libsimple-http-java libsisu-inject-java libsisu-plexus-java libslf4j-java libwagon-file-java libwagon-http-java
  libwagon-provider-api-java libwebsocket-api-java libxalan2-java libxbean-reflect-java libxerces2-java libxml-commons-external-java libxml-commons-resolver1.1-java libxpp3-java libxstream-java libxz-java libyaml-snake-java testng unzip
0 upgraded, 0 newly installed, 125 to remove and 8 not upgraded.
After this operation, 182 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 77922 files and directories currently installed.)
Removing libgradle-plugins-java (4.4.1-5ubuntu2~18.04) ...
Removing ant-optional (1.10.5-3~18.04) ...
Removing libgradle-core-java (4.4.1-5ubuntu2~18.04) ...
Removing libgpars-groovy-java (1.2.1-10~18.04.1) ...
Removing groovy (2.4.16-1ubuntu1~18.04.1) ...
Removing antlr (2.7.7+dfsg-9.2) ...
Removing libbindex-java (2.2+svn101-4~18.04) ...
Removing bnd (3.5.0-4~18.04) ...
Removing jenkins (2.249.3) ...
Removing daemon (0.6.4-1build1) ...
Removing ivy (2.4.0-3) ...
Removing java-wrappers (0.3) ...
Removing javascript-common (11) ...
Removing junit4 (4.12-8~18.04) ...
Removing libantlr-java (2.7.7+dfsg-9.2) ...
Removing libmaven3-core-java (3.6.0-1~18.04.1) ...
Removing libsisu-plexus-java (0.3.3-3) ...
Removing libsisu-inject-java (0.3.2-2) ...
Removing libguice-java (4.0-4) ...
Removing libaopalliance-java (20070526-6) ...
Removing libmaven-parent-java (31-2~18.04) ...
Removing libcommons-compress-java (1.18-1~18.04) ...
Removing libkryo-java (2.20-6) ...
Removing libreflectasm-java (1.05-4) ...
Removing libfindbugs-java (3.1.0~preview2-3) ...
Removing libasm-java (7.0-1~18.04) ...
Removing libplexus-container-default1.5-java (1.7.1-7) ...
Removing libplexus-container-default-java (1.7.1-7) ...
Removing libguava-java (19.0-1) ...
Removing libcdi-api-java (1.2-2) ...
Removing libatinject-jsr330-api-java (1.0+ds1-5) ...
Removing libbcel-java (6.2-1) ...
Removing libbcpg-java (1.59-1) ...
Removing libbcprov-java (1.59-1) ...
Removing libbsf-java (1:2.4.0-5build1) ...
Removing testng (6.9.12-2ubuntu1) ...
Removing libbsh-java (2.0b4-19) ...
Removing libcommons-cli-java (1.4-1) ...
Removing libwagon-http-java (3.0.0-2) ...
Removing libjgit-java (3.7.1-4) ...
Removing libhttpclient-java (4.5.5-1) ...
Removing libcommons-codec-java (1.11-1) ...
Removing libcommons-collections3-java (3.2.2-2~18.04) ...
Removing libmaven-shared-utils-java (3.3.0-1~18.04) ...
Removing libcommons-io-java (2.6-2) ...
Removing libcommons-lang-java (2.6-8) ...
Removing libcommons-lang3-java (3.8-1~18.04.2) ...
Removing libcommons-logging-java (1.2-2) ...
Removing libdd-plist-java (1.20-1~18.04.1) ...
Removing libdom4j-java (2.1.0-2) ...
Removing libservlet3.1-java (1:4.0.1-2~18.04) ...
Removing libel-api-java (3.0.0-2~18.04) ...
Removing libfelix-framework-java (4.6.1-2) ...
Removing libfelix-gogo-runtime-java (0.16.2-1) ...
Removing libfelix-osgi-obr-java (1.0.2-4fakesync1) ...
Removing libfelix-resolver-java (1.14.0-1) ...
Removing libgeronimo-annotation-1.3-spec-java (1.0-1) ...
Removing libgeronimo-interceptor-3.0-spec-java (1.0.1-4fakesync) ...
Removing libgoogle-gson-java (2.8.5-3~18.04) ...
Removing libhamcrest-java (1.3-7) ...
Removing libjline2-java (2.14.6-1) ...
Removing libjansi-java (1.16-1) ...
Removing libjansi-native-java (1.7-1) ...
Removing libhawtjni-runtime-java (1.15-2) ...
Removing libhttpcore-java (4.4.9-1) ...
Removing libjarjar-java (1.4+svn142-8) ...
Removing libjatl-java (0.2.3-1) ...
Removing libjavaewah-java (0.7.9-1~18.04.1) ...
Removing libjaxen-java (1.1.6-3) ...
Removing libplexus-utils-java (1:1.5.15-5) ...
Removing libxalan2-java (2.7.2-1) ...
Removing libjaxp1.3-java (1.3.05-5) ...
Removing libjcifs-java (1.3.19-2) ...
Removing libjcip-annotations-java (20060626-5) ...
Removing libjcommander-java (1.71-3~18.04) ...
Removing libjcsp-java (1.1-rc4-2) ...
Removing libjformatstring-java (0.10~20131207-2) ...
Removing libjna-java (4.5.1-1) ...
Removing libjna-jni (4.5.1-1) ...
Removing libjs-jquery (3.2.1-1) ...
Removing libjsch-java (0.1.54-1) ...
Removing libjsoup-java (1.10.2-2) ...
Removing libjsp-api-java (2.3.4-2~18.04) ...
Removing libjsr166y-java (1.7.0-2) ...
Removing libjsr305-java (0.1~+svn49-10) ...
Removing libjzlib-java (1.1.3-2) ...
Removing libkxml2-java (2.3.0+ds1-2) ...
Removing liblogback-java (1:1.2.3-2ubuntu1~18.04.1) ...
Removing libmaven-resolver-java (1.3.1-1~18.04) ...
Removing libminlog-java (1.3.0-1) ...
Removing libmultiverse-core-java (0.7.0-4) ...
Removing libnative-platform-java (0.14-3) ...
Removing libnative-platform-jni (0.14-3) ...
Removing libnekohtml-java (1.9.22-1) ...
Removing libobjenesis-java (3.0.1-2~18.04) ...
Removing libosgi-compendium-java (6.0.0-1) ...
Removing libosgi-core-java (6.0.0-1) ...
Removing libosgi-annotation-java (6.0.0-2) ...
Removing libplexus-sec-dispatcher-java (1.4-3) ...
Removing libplexus-cipher-java (1.7-3) ...
Removing libplexus-classworlds-java (2.5.2-2) ...
Removing libplexus-component-annotations-java (1.7.1-7) ...
Removing libplexus-interpolation-java (1.24-1) ...
Removing libwagon-file-java (3.0.0-2) ...
Removing libwagon-provider-api-java (3.0.0-2) ...
Removing libplexus-utils2-java (3.0.24-3) ...
Removing libpolyglot-maven-java (0.8~tobrien+git20120905-9) ...
Removing libqdox-java (1.12.1-3) ...
Removing librhino-java (1.7.7.1-1) ...
Removing libservlet-api-java (4.0.1-2~18.04) ...
Removing libsimple-http-java (4.1.21-1fakesync1) ...
Removing libslf4j-java (1.7.25-3) ...
Removing libwebsocket-api-java (1.1-1~18.04) ...
Removing libxbean-reflect-java (4.5-6) ...
Removing libxerces2-java (2.11.0-8) ...
Removing libxml-commons-external-java (1.4.01-3) ...
Removing libxml-commons-resolver1.1-java (1.2-9) ...
Removing libxstream-java (1.4.11.1-1~18.04) ...
Removing libxpp3-java (1.1.4c-3) ...
Removing libxz-java (1.8-1) ...
Removing libyaml-snake-java (1.23-1~18.04) ...
Removing unzip (6.0-21ubuntu1) ...
Removing ant (1.10.5-3~18.04) ...
Removing libcommons-parent-java (43-1) ...
Removing libapache-pom-java (18-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
 

提示报错,重新安装

sudo mv info/ info_bak          # 现将info文件夹更名
sudo mkdir info                 # 再新建一个新的info文件夹
sudo apt-get update             # 更新
sudo apt-get -f install         # 修复
sudo mv info/* info_bak/        # 执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_bak文件夹下
sudo rm -rf info                # 把自己新建的info文件夹删掉
sudo mv info_bak info           # 把以前的info文件夹重新改回名

 

2020-12-02 03:28:32.381+0000 [id=12]    WARNING    h.i.i.InstallUncaughtExceptionHandler#handleException
java.util.concurrent.TimeoutException: Idle timeout expired: 5001/5000 ms
    at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:171)

 

提示这个Unable to connect to Jenkins

重新启动机器,自动起来了jenkins

jenkins   1196     1  0 06:03 ?        00:00:00 /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -Djava.awt.headless=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
jenkins   1197  1196  6 06:03 ?        00:00:12 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080

 

4.安装jenkins插件

Performance Plugin 

Folders	 Success
Trilead API	 Success
OWASP Markup Formatter	 Success
Oracle Java SE Development Kit Installer	 Success
Structs	 Success
Pipeline: Step API	 Success
Token Macro	 Success
Build Timeout	 Success
Credentials	 Success
Plain Credentials	 Success
SSH Credentials	 Success
Credentials Binding	 Success
SCM API	 Success
Pipeline: API	 Success
Timestamper	 Success
Script Security	 Success
Pipeline: Supporting APIs	 Success
Durable Task	 Success
Pipeline: Nodes and Processes	 Success
Plugin Utilities API	 Success
Font Awesome API	 Success
Popper.js API	 Success
JQuery3 API	 Success
Bootstrap 4 API	 Success
Snakeyaml API	 Success
Jackson 2 API	 Success
ECharts API	 Success
Display URL API	 Success
Checks API	 Success
JUnit	 Success
Matrix Project	 Success
Command Agent Launcher	 Success
Resource Disposer	 Success
Workspace Cleanup	 Success
Ant	 Success
bouncycastle API	 Success
JavaScript GUI Lib: ACE Editor bundle	 Success
Pipeline: SCM Step	 Success
Pipeline: Groovy	 Success
Pipeline: Job	 Success
Mailer	 Success
Apache HttpComponents Client 4.x API	 Success
Pipeline: Basic Steps	 Success
Gradle	 Success
Pipeline: Milestone Step	 Success
Pipeline: Input Step	 Success
Pipeline: Stage Step	 Success
Pipeline Graph Analysis	 Success
Pipeline: REST API	 Success
JavaScript GUI Lib: Handlebars bundle	 Success
JavaScript GUI Lib: Moment.js bundle	 Success
Pipeline: Stage View	 Success
Pipeline: Build Step	 Success
Pipeline: Model API	 Success
Pipeline: Declarative Extension Points API	 Success
JSch dependency	 Success
Git client	 Success
GIT server	 Success
Pipeline: Shared Groovy Libraries	 Success
Branch API	 Success
Pipeline: Multibranch	 Success
Pipeline: Stage Tags Metadata	 Success
Pipeline: Declarative	 Success
Lockable Resources	 Success
Pipeline	 Success
OkHttp	 Success
GitHub API	 Success
Git	 Success
GitHub	 Success
GitHub Branch Source	 Success
Pipeline: GitHub Groovy Libraries	 Success
Pipeline: Stage View	 Success
Git	 Success
SSH Build Agents	 Success
Matrix Authorization Strategy	 Success
PAM Authentication	 Success
LDAP	 Success
Email Extension	 Success
Mailer	 Success
Loading plugin extensions	 Success
HTML Publisher	 Success
Loading plugin extensions	 Success
Performance	 Success
Performance Publisher	 Success
AppDynamics Dashboard	 Success
Loading plugin extensions	 Success

publish performance test result report 配置

An error occurred: Cannot write to '/home/taobao/report' as folder does not exist and parent folder is not writable

 

 

 

 

 

 类似资料: