How to reslove this issue in jenkins.
Installing /root/.jenkins/tools/hudson.model.JDK/java_1.8/jdk.sh
[java_1.8] $ /root/.jenkins/tools/hudson.model.JDK/java_1.8/jdk.sh -noregister
/root/.jenkins/tools/hudson.model.JDK/java_1.8/jdk.sh: 2: Syntax error: newline unexpected
FATAL: command execution failed
hudson.AbortException: Failed to install JDK. Exit code=2
Related
I was compiling ROS2 from source on Ubuntu. I received this error,
Failed <<< osrf_testing_tools_cpp
when running the command,
colcon build --symlink-install
this is the full error
Is there any reason why I would be getting this error?
I need to build apache beam using gradle . ./gradlew build . However, I got the following error :
Execution failed for task ':website:buildDockerImage'. > A problem occurred starting process 'command 'docker''
java version : openjdk version "1.8.0_265"
gradle version : Gradle 5.4
By using --info , I got the following :
Caching disabled for task ':website:buildDockerImage' because:
Caching has not been enabled for the task
Task ':website:buildDockerImage' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Starting process 'command 'docker''. Working directory: /home/namenode/beam/website Command: docker build -t beam-website .
:website:buildDockerImage (Thread[Daemon worker Thread 20,5,main]) completed. Took 0.018 secs.
Closing Git repo: /home/namenode/beam/.git
Closing Git repo: /home/namenode/beam/.git
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':website:buildDockerImage'.
> A problem occurred starting process 'command 'docker''
while --stacktrace outputs :
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':website:buildDockerImage'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:200)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:198)
at org.gradle.process.internal.ExecHandleRunner.startProcess(ExecHandleRunner.java:98)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:71)
... more
Caused by: java.io.IOException: Cannot run program "docker" (in directory "/home/namenode/beam/website"): error=2, No such file or directory
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
... 8 more
BUILD FAILED in 1s
1 actionable task: 1 executed
[root#namenode beam]# ./gradlew build
Watching the file system is not supported on this operating system.
Configuration on demand is an incubating feature.
> Task :website:buildDockerImage FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':website:buildDockerImage'.
> A problem occurred starting process 'command 'docker''
how can I proceed ?
Unpacking https://repo.jenkins-ci.org/maven-repo1/io/qameta/allure/allure-commandline/2.13.0/allure-commandline-2.13.0.zip to C:\Users\user1G.jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\allure on Jenkins
ERROR: Step ‘Allure Report’ aborted due to exception:
java.io.IOException: Failed to rename C:\Users\user1G.jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\allure\allure-2.13.0 to C:\Users\user1G.jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\allure\allure-2.13.0.__rename
Have you tried this!
java.io.IOException may be its jdk related and Allure requires JDK version 8 or higher.
Do install jdk version and update JAVA_HOME system variable correctly. Try again !
If still not work put the json-lib jar in JAVA_HOME/lib. I got the jar from http://www.java2s.com/Code/Jar/j/Downloadjsonlib24jdk15jar.htm
I'm having a problem with Building TF Hub from Source. Can Anyone please help me out? I've been following the steps as given in https://github.com/tensorflow/hub/blob/master/tensorflow_hub/pip_package/PIP.md
I've installed bazel 0.24.1.
Error I'm Getting:
ERROR: /home/tf_hub/hub/WORKSPACE:17:1: name 'git_repository' is not defined
ERROR: /home/tf_hub/hub/WORKSPACE:40:1: name 'http_archive' is not defined
ERROR: /home/tf_hub/hub/WORKSPACE:47:1: name 'new_http_archive' is not defined
ERROR: Error evaluating WORKSPACE file
ERROR: error loading package '': Encountered error while reading extension file 'tools/build_defs/repo/http.bzl': no such package '#bazel_tools//tools/build_defs/repo': error loading package 'external': Could not load //external package
ERROR: error loading package '': Encountered error while reading extension file 'tools/build_defs/repo/http.bzl': no such package '#bazel_tools//tools/build_defs/repo': error loading package 'external': Could not load //external package
INFO: Elapsed time: 2.552s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
Bazel Version: 0.24.1
Python Version: 3
Tensorflow Version: 2.0.0a
Commands to Reproduce:
(env)~/tf_hub$ git clone https://github.com/tensorflow/hub
(env)~/tf_hub$ cd hub && bazel build tensorflow_hub/pip_package:build_pip_package
Expected Output: No Error. Build Sucessful
Latest Versions of Bazel Doesn't support git_repository (which is still used by tensorflow_hub), so Uninstalling Bazel 0.24.1 and installing Bazel 0.18.1 worked.
Android Studio 3.2. Gradle 4.6
In my gradle.properties:
android.useAndroidX=true
android.enableJetifier=true
I want to migrate to AndroidX.
So in menu select
Refactor -> Migrate to AndroidX
Studio replace many of my resources to androidx...
Nice.
But when I build project I get error:
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
Output: D:\dev\MyProject\\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1614: error: duplicate value for resource 'attr/mode' with config ''.
D:\dev\MyProject\\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1614: error: resource previously defined here.
Command: C:\Users\Alexei\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\1140ed5d6b762801720aa38b75493b72\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
D:\dev\MyProject\\app\build\intermediates\res\merged\debug \
D:\dev\MyProject\\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\Alexei\.gradle\caches\transforms-1\files-1.1\jetified-swipe-reveal-layout-1.4.1.aar\9897ef13e78d1b3a157ca2f1633442ed\res\values\values.xml:3:5-414: AAPT: error: duplicate value for resource 'attr/mode' with config ''.