accenture / adop-jenkins Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I wonder why you add a thread start and sleep to all your init script?
Can you describe the purpose, please?
Thanks
Gordon
Dears,
This groovy script runs successfully (LDAP) but no changes are done to Jenkins config.xml file thus no changes are applied (default is Jenkins database and whoever is logged can do anything).
Is there anything else that needs to happen after the groovy script runs? Is the passcode cleartext or hash?
I'd appreciate if you could clarify. I imagine the groovy script would cause changes to the config.xml file as it happens if I configure it via Web UI.
Thanks in advance!
When a Jenkins job has enabled the SonarQube analysis, the job page displays a direct link to the SonarQube project/artifact page. However currently in our Jenkins image, the link is using the inner container name: http://sonar:9000, instead of the public URL.
To solve this, the Jenkins global settings (under Configure System page in the UI) should be updated. See picture attached for reference of the setting that needs to be updated.
Running docker build in Windows I found an error when plugins.sh is executed:
the command returned a non-zero code 3
If I run the same command in OSX it ends without errors, it seems to be some kind of problem with plugins.txt file.
I was messing around with the latest from adop-docker-compose and noticed this error:
groovy.lang.MissingMethodException: No signature of method: static jenkins.plugins.nodejs.NodeJSPlugin.instance() is applicable for argument types: () values: []
Possible solutions: inspect(), isCase(java.lang.Object), save(), start(), start()
at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1503)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1489)
at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:53)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
at adop_nodejs$_run_closure1.doCall(adop_nodejs.groovy:27)
at adop_nodejs$_run_closure1.doCall(adop_nodejs.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
at groovy.lang.Closure.call(Closure.java:414)
at groovy.lang.Closure.call(Closure.java:408)
at groovy.lang.Closure.run(Closure.java:495)
at java.lang.Thread.run(Thread.java:745)
I also couldn't see the default NodeJS installation either. The above suggests the plugin has changed and the adop_nodejs.groovy script needs updating perhaps.
I will add that I was installing all sorts and updated everything so my NodeJS plugin has ended up at version 1.0 - so this might be something we need to care about in the future when we upgrade, rather than right now.
Hi,
I started adop-jenkins latest version using the command provided in documentation. But jenkins is never up, it has error while running "generate_gitlab_scm.sh" scripts. It says sonar is unavailable error. I just not sure why jenkins startup is looking for sonar error.
Jenkins command used to start:
docker container run
--name acn-jenkins
--detach
--rm
-p 8080:8080
accenture/adop-jenkins:latest
Currently the Load_Platform job calls another child job Job_Runner which in turn executes all the jobs responsible for setting up your platform.
For some reason, it is under a conditional build step, which means if Generate_Example_Workspace is not ticked, it won't execute. This needs to simply be moved into a regular build step.
This issue is created to raise awareness that I'm working on upgrade of Jenkins from 2.7.4 LTS to 2.73.3 LTS. I'll create separate "v2 branch" in the repository and create a PR to make progress more visible. There are quite many issues to work with i.e. almost all plugins should be updated and I expect some rework on init groovy scripts as well:
We have such example in Linux for init-scripts
Like:
01-adop_general.groovy
02-adop_ant.groovy
...
It would be nice if there will be a docker tag that contains the latest and greatest such as accenture/adop-jenkins:x.x.x-${jenkins_version}
that will be maintained on a separate branch.
My current project will use blue ocean and it will require a massive upgrade to all plugins. Any thoughts? @anton-kasperovich @nickdgriffin @kramos
After starting the image as per the instructions, I accessed the web interface and the following error appeared:
anonymous is missing the Overall/Read permission
I've tried disabling security in config.xml
, but apparently that gets recreated with security enabled.
It would be desirable to add to the platform a couple of jobs to automate the creation of more slave nodes, and dispose them once no longer needed.
NOTE: I have removed the username and password from the below command.
[aravindmurthy@MacBookPro:/Users/aravindmurthy/Downloads/DevOpsKT/adop-docker-compose]$ ./quickstart.sh -t local adop <username_removed> <password_removed>
### ######## ####### ########
## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ##
## ## ## ## ## ## ########
######### ## ## ## ## ##
## ## ## ## ## ## ##
## ## ######## ####### ##
Running pre-create checks...
Creating machine...
(adop) Copying /Users/aravindmurthy/.docker/machine/cache/boot2docker.iso to /Users/aravindmurthy/.docker/machine/machines/adop/boot2docker.iso...
(adop) Creating VirtualBox VM...
(adop) Creating SSH key...
(adop) Starting the VM...
(adop) Check network to re-create if needed...
(adop) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env adop
### ######## ####### ########
## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ##
## ## ## ## ## ## ########
######### ## ## ## ## ##
## ## ## ## ## ## ##
## ## ######## ####### ##
* Initialising ADOP
Sourcing provider-specific environment files...
Your secrets file already exists, will not re-create...
Sourcing variables from platform.secrets.sh file...
The version of your secrets file is up to date, moving on...
* Setting up Docker Network
Created Docker network: local_network
* Pulling Docker Images
Sourcing provider-specific environment files...
Your secrets file already exists, will not re-create...
Sourcing variables from platform.secrets.sh file...
The version of your secrets file is up to date, moving on...
Pulling elasticsearch (elasticsearch:2.1.1)...
ERROR: Get https://registry-1.docker.io/v2/library/elasticsearch/manifests/2.1.1: unauthorized: incorrect username or password
Hello,
I used ./setup-local.sh in order to configure my ADOP stack.
The creation is OK, but when I start the Load_Platform job, I get this issue:
10:57:11 + echo 'Repository already exists, skipping: platform-management'
10:57:11 Repository already exists, skipping: platform-management
10:57:11 + git remote add adop ssh://jenkins@gerrit:29418/platform-management
10:57:11 + git fetch adop
10:57:12 + git push adop '+refs/remotes/origin/:refs/heads/'
10:57:12 fatal: internal server error
10:57:12 fatal: Could not read from remote repository.
10:57:12
10:57:12 Please make sure you have the correct access rights
10:57:12 and the repository exists.
10:57:12 Build step 'Execute shell' marked build as failure
10:57:12 [ssh-agent] Stopped.
10:57:12 Finished: FAILURE
I did a docker exec inside Jenkins container, I started manually a git clone, and it seems that there is a RSA key issue:
root@79bcc2fc0b82:/tmp# git clone ssh://jenkins@gerrit:29418/platform-management
Cloning into 'platform-management'...
Permission denied (publickey).
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
Do you know how to fix it?
Thanks in advance!
just a case of adding the simple theme plugin; curling a theme into the $jenkins_home/userContent/. and setting the url string ni the jenkins system config to /userContent/<theme .css>
would also be nice for optional theme for visually impaired users
@nickdgriffin @anton-kasperovich, For your review.
My Pull Request here - #17
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.