Compile Android Project in Docker Container in Jenkins2019 Community Moderator ElectionHow is Docker different from a virtual machine?Ant 1.9.3 and jenkins 1_539 installation issueJenkins iOS Build Provisioning profile IssueAlternate Jenkins Build crashesCan't generate allure report in Linux Jenkins serverJenkins JMeter Perfomance Plugin Error : Exception while determining absolute error/unstable threshold evaluationJenkins error: FATAL: null — java.lang.NullPointerExceptionjava.lang.NullPointerException when Zypher is publishing report to JIRANexus Repository Manager with Jenkins Configuration ErrorHow to deploy a war file in GlassFish 4 server Using Jenkins
Use of undefined constant bloginfo
If I can solve Sudoku can I solve Travelling Salesman Problem(TSP)? If yes, how?
My adviser wants to be the first author
A Cautionary Suggestion
How to change two letters closest to a string and one letter immediately after a string using notepad++
How to use deus ex machina safely?
how to draw discrete time diagram in tikz
What are substitutions for coconut in curry?
How to read the value of this capacitor?
Why did it take so long to abandon sail after steamships were demonstrated?
how to write formula in word in latex
How to terminate ping <dest> &
How big is a MODIS 250m pixel in reality?
Are all passive ability checks floors for active ability checks?
Why one should not leave fingerprints on bulbs and plugs?
Is there a data structure that only stores hash codes and not the actual objects?
A sequence that has integer values for prime indexes only:
Who is flying the vertibirds?
Did Ender ever learn that he killed Stilson and/or Bonzo?
How can you use ICE tables to solve multiple coupled equilibria?
The difference between「N分で」and「後N分で」
Happy pi day, everyone!
Look at your watch and tell me what time is it. vs Look at your watch and tell me what time it is
How do I hide Chekhov's Gun?
Compile Android Project in Docker Container in Jenkins
2019 Community Moderator ElectionHow is Docker different from a virtual machine?Ant 1.9.3 and jenkins 1_539 installation issueJenkins iOS Build Provisioning profile IssueAlternate Jenkins Build crashesCan't generate allure report in Linux Jenkins serverJenkins JMeter Perfomance Plugin Error : Exception while determining absolute error/unstable threshold evaluationJenkins error: FATAL: null — java.lang.NullPointerExceptionjava.lang.NullPointerException when Zypher is publishing report to JIRANexus Repository Manager with Jenkins Configuration ErrorHow to deploy a war file in GlassFish 4 server Using Jenkins
I want to compile Android Projects with Gradle in Jenkins with Docker and i'm getting following message while building the project:
Docker container 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 started to host the build
[Gradle] - Launching build.
$ docker -H tcp://192.168.0.234:2375 exec --tty 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 env
Error response from daemon: Container 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 is not running
ERROR: Build step failed with exception
java.lang.RuntimeException: Failed to retrieve container's environment
at com.cloudbees.jenkins.plugins.docker_build_env.Docker.getEnv(Docker.java:321)
at com.cloudbees.jenkins.plugins.docker_build_env.DockerDecoratedLauncher.buildContainerEnvironment(DockerDecoratedLauncher.java:59)
at com.cloudbees.jenkins.plugins.docker_build_env.DockerDecoratedLauncher.launch(DockerDecoratedLauncher.java:47)
at hudson.Launcher$ProcStarter.start(Launcher.java:455)
at hudson.Launcher$ProcStarter.join(Launcher.java:466)
at hudson.plugins.gradle.Gradle.performTask(Gradle.java:332)
at hudson.plugins.gradle.Gradle.perform(Gradle.java:224)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1810)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Invoke Gradle script' marked build as failure
Stopping Docker container after build completion
I tried different Dockerfiles like runmymind/docker-android-sdk and thyrlian/android-sdk - same error.
The OS of the Host-machine is Ubuntu 18 aarch64.
Jenkins Job-Settings:



add a comment |
I want to compile Android Projects with Gradle in Jenkins with Docker and i'm getting following message while building the project:
Docker container 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 started to host the build
[Gradle] - Launching build.
$ docker -H tcp://192.168.0.234:2375 exec --tty 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 env
Error response from daemon: Container 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 is not running
ERROR: Build step failed with exception
java.lang.RuntimeException: Failed to retrieve container's environment
at com.cloudbees.jenkins.plugins.docker_build_env.Docker.getEnv(Docker.java:321)
at com.cloudbees.jenkins.plugins.docker_build_env.DockerDecoratedLauncher.buildContainerEnvironment(DockerDecoratedLauncher.java:59)
at com.cloudbees.jenkins.plugins.docker_build_env.DockerDecoratedLauncher.launch(DockerDecoratedLauncher.java:47)
at hudson.Launcher$ProcStarter.start(Launcher.java:455)
at hudson.Launcher$ProcStarter.join(Launcher.java:466)
at hudson.plugins.gradle.Gradle.performTask(Gradle.java:332)
at hudson.plugins.gradle.Gradle.perform(Gradle.java:224)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1810)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Invoke Gradle script' marked build as failure
Stopping Docker container after build completion
I tried different Dockerfiles like runmymind/docker-android-sdk and thyrlian/android-sdk - same error.
The OS of the Host-machine is Ubuntu 18 aarch64.
Jenkins Job-Settings:



I am pretty sure that this is related to that /bin/cat command. That command will exit immediatly, so that when the build step tries to connect to the build container - it is already dead and gone. I am not sure how to configure this though. I think I would go for a Jenkinsfile and a Jenkins pipelines.
– Andreas Lorenzen
Mar 6 at 22:44
add a comment |
I want to compile Android Projects with Gradle in Jenkins with Docker and i'm getting following message while building the project:
Docker container 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 started to host the build
[Gradle] - Launching build.
$ docker -H tcp://192.168.0.234:2375 exec --tty 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 env
Error response from daemon: Container 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 is not running
ERROR: Build step failed with exception
java.lang.RuntimeException: Failed to retrieve container's environment
at com.cloudbees.jenkins.plugins.docker_build_env.Docker.getEnv(Docker.java:321)
at com.cloudbees.jenkins.plugins.docker_build_env.DockerDecoratedLauncher.buildContainerEnvironment(DockerDecoratedLauncher.java:59)
at com.cloudbees.jenkins.plugins.docker_build_env.DockerDecoratedLauncher.launch(DockerDecoratedLauncher.java:47)
at hudson.Launcher$ProcStarter.start(Launcher.java:455)
at hudson.Launcher$ProcStarter.join(Launcher.java:466)
at hudson.plugins.gradle.Gradle.performTask(Gradle.java:332)
at hudson.plugins.gradle.Gradle.perform(Gradle.java:224)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1810)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Invoke Gradle script' marked build as failure
Stopping Docker container after build completion
I tried different Dockerfiles like runmymind/docker-android-sdk and thyrlian/android-sdk - same error.
The OS of the Host-machine is Ubuntu 18 aarch64.
Jenkins Job-Settings:



I want to compile Android Projects with Gradle in Jenkins with Docker and i'm getting following message while building the project:
Docker container 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 started to host the build
[Gradle] - Launching build.
$ docker -H tcp://192.168.0.234:2375 exec --tty 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 env
Error response from daemon: Container 9a2b37cfcc86552c0b6635537afd897dbc7639b25394b5f272f402b7d83ed540 is not running
ERROR: Build step failed with exception
java.lang.RuntimeException: Failed to retrieve container's environment
at com.cloudbees.jenkins.plugins.docker_build_env.Docker.getEnv(Docker.java:321)
at com.cloudbees.jenkins.plugins.docker_build_env.DockerDecoratedLauncher.buildContainerEnvironment(DockerDecoratedLauncher.java:59)
at com.cloudbees.jenkins.plugins.docker_build_env.DockerDecoratedLauncher.launch(DockerDecoratedLauncher.java:47)
at hudson.Launcher$ProcStarter.start(Launcher.java:455)
at hudson.Launcher$ProcStarter.join(Launcher.java:466)
at hudson.plugins.gradle.Gradle.performTask(Gradle.java:332)
at hudson.plugins.gradle.Gradle.perform(Gradle.java:224)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1810)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Invoke Gradle script' marked build as failure
Stopping Docker container after build completion
I tried different Dockerfiles like runmymind/docker-android-sdk and thyrlian/android-sdk - same error.
The OS of the Host-machine is Ubuntu 18 aarch64.
Jenkins Job-Settings:



edited Mar 6 at 19:58
Mostafa Hussein
4,55231337
4,55231337
asked Mar 6 at 19:51
HieadHiead
438
438
I am pretty sure that this is related to that /bin/cat command. That command will exit immediatly, so that when the build step tries to connect to the build container - it is already dead and gone. I am not sure how to configure this though. I think I would go for a Jenkinsfile and a Jenkins pipelines.
– Andreas Lorenzen
Mar 6 at 22:44
add a comment |
I am pretty sure that this is related to that /bin/cat command. That command will exit immediatly, so that when the build step tries to connect to the build container - it is already dead and gone. I am not sure how to configure this though. I think I would go for a Jenkinsfile and a Jenkins pipelines.
– Andreas Lorenzen
Mar 6 at 22:44
I am pretty sure that this is related to that /bin/cat command. That command will exit immediatly, so that when the build step tries to connect to the build container - it is already dead and gone. I am not sure how to configure this though. I think I would go for a Jenkinsfile and a Jenkins pipelines.
– Andreas Lorenzen
Mar 6 at 22:44
I am pretty sure that this is related to that /bin/cat command. That command will exit immediatly, so that when the build step tries to connect to the build container - it is already dead and gone. I am not sure how to configure this though. I think I would go for a Jenkinsfile and a Jenkins pipelines.
– Andreas Lorenzen
Mar 6 at 22:44
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031153%2fcompile-android-project-in-docker-container-in-jenkins%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031153%2fcompile-android-project-in-docker-container-in-jenkins%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I am pretty sure that this is related to that /bin/cat command. That command will exit immediatly, so that when the build step tries to connect to the build container - it is already dead and gone. I am not sure how to configure this though. I think I would go for a Jenkinsfile and a Jenkins pipelines.
– Andreas Lorenzen
Mar 6 at 22:44