Jenkins

Jenkins Docker in Docker on GCP/Kubernetes

ε祈祈猫儿з 提交于 2021-02-07 09:58:29
问题 Is there a recommended way of initiating 'docker build' commands from a container loaded in to Kubernetes? IE. Spinning up a Jenkins container (from the community image) and then ensuring that docker is installed within that container so you can issue 'docker build' commands. I've read up on various methods such as DIND (Docker in Docker) containers and running links between the Jenkins container and the DIND container. Of course with Kubernetes this would be different. 回答1: There are two

jenkins update plugins throws java.net.MalformedURLException: no protocol: ?id=simpleupdatesite&version=2.32.1 (jenkins 2.32.1 version)

核能气质少年 提交于 2021-02-07 09:57:26
问题 http://machine.name.com/pluginManager/advanced and I hit submit on the update site url (http://updates.jenkins-ci.org/update-center.json) I get the following error java.net.MalformedURLException: no protocol: ?id=simpleupdatesite&version=2.32.1 at java.net.URL.<init>(URL.java:585) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:180) at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:1619) at

jenkins update plugins throws java.net.MalformedURLException: no protocol: ?id=simpleupdatesite&version=2.32.1 (jenkins 2.32.1 version)

牧云@^-^@ 提交于 2021-02-07 09:57:05
问题 http://machine.name.com/pluginManager/advanced and I hit submit on the update site url (http://updates.jenkins-ci.org/update-center.json) I get the following error java.net.MalformedURLException: no protocol: ?id=simpleupdatesite&version=2.32.1 at java.net.URL.<init>(URL.java:585) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:180) at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:1619) at

AWS SDK can not read environment variables

醉酒当歌 提交于 2021-02-07 09:19:12
问题 I am setting AWS_ env variables as below for Jenkins sudo apt-get update -y sudo apt-get install -y python3 python-pip python-devel sudo pip install awscli S3_LOGIN=$(aws sts assume-role --role-arn rolename --role-session-name s3_session) export AWS_CREDENTIAL_PROFILES_FILE=~/.aws/credentials export AWS_ACCESS_KEY_ID=$(echo ${S3_LOGIN}| jq --raw-output '.Credentials|"\(.AccessKeyId)"') export AWS_SECRET_ACCESS_KEY=$(echo ${S3_LOGIN} | jq --raw-output '.Credentials|"\(.SecretAccessKey)"')

Android emulator crash logs

旧时模样 提交于 2021-02-07 09:12:58
问题 I'm using jenkins with the android plugin but it seems that my emulator dies during the build. The logcat goes to the point when some activity is started but then nothing any more. So it clearly did not shut down properly. Is there some other log that I can enable to debug this issue? Might be caused by the emulator going out of memory. 回答1: Maybe you can start the Emulator with the -verbose or -logcat option. Have a look in the Debug section of the android emulator command line parameters.

AWS SDK can not read environment variables

做~自己de王妃 提交于 2021-02-07 09:10:38
问题 I am setting AWS_ env variables as below for Jenkins sudo apt-get update -y sudo apt-get install -y python3 python-pip python-devel sudo pip install awscli S3_LOGIN=$(aws sts assume-role --role-arn rolename --role-session-name s3_session) export AWS_CREDENTIAL_PROFILES_FILE=~/.aws/credentials export AWS_ACCESS_KEY_ID=$(echo ${S3_LOGIN}| jq --raw-output '.Credentials|"\(.AccessKeyId)"') export AWS_SECRET_ACCESS_KEY=$(echo ${S3_LOGIN} | jq --raw-output '.Credentials|"\(.SecretAccessKey)"')

Jenkins Pipeline throttle other jobs

北慕城南 提交于 2021-02-07 08:42:01
问题 I'm trying to lock some other jobs from runing when a jenkins pipeline is running, I've been trying to use the exclusion-plugin or the throttle-concurrent-builds-plugin with this kind of structure : node(){ stage "test" allocate('test') sleep time: 15, unit: 'MINUTES' sh "echo 'yes'" } @NonCPS def allocate(String resource){ throttle = new hudson.plugins.throttleconcurrents.ThrottleJobProperty( maxConcurrentPerNode=1, maxConcurrentTotal=1, categories = [resource], throttleEnabled=true,

Add build information in Jenkins using REST

家住魔仙堡 提交于 2021-02-07 08:28:37
问题 Does anyone know how to add build information to an existing Jenkins build? What I'm trying to do is replace the #1 build number with the actual full version number that the build represents. I can do this manually by going to http://MyJenkinsServer/job/[jobname]/[buildnumber]/configure I have tried to reverse engineer the headers using chrome by seeing what it sends to the server and I found the following: Request URL:http://<server>/job/test_job/1/configSubmit Request Method:POST Status

Combine Multiple json results in one, updated Cucumber-JVM Report

走远了吗. 提交于 2021-02-07 08:21:34
问题 I have two runners in my automation project as follows: Main runner - Executes all the @ui-test tagged test cases and if a scenario is failed target/rerun.txt will be populated with the scenario location (e.g. features/Dummy.feature:22 ): @RunWith(Cucumber.class) @CucumberOptions( features = "classpath:features", plugin = {"pretty", "html:target/cucumber-html-report", "json:target/cucumber.json", "rerun:target/rerun.txt"}, tags = {"@ui-test", "~@ignore"} ) public class RunCukesTest { }

Combine Multiple json results in one, updated Cucumber-JVM Report

元气小坏坏 提交于 2021-02-07 08:15:23
问题 I have two runners in my automation project as follows: Main runner - Executes all the @ui-test tagged test cases and if a scenario is failed target/rerun.txt will be populated with the scenario location (e.g. features/Dummy.feature:22 ): @RunWith(Cucumber.class) @CucumberOptions( features = "classpath:features", plugin = {"pretty", "html:target/cucumber-html-report", "json:target/cucumber.json", "rerun:target/rerun.txt"}, tags = {"@ui-test", "~@ignore"} ) public class RunCukesTest { }