Git Product home page Git Product logo

adop-jenkins's Issues

Groovy script runs but no changes are performed

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!

Link to SonarQube from Jenkins jobs uses the inner container name, not the public URL

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.
link-to-sonarqube

Error executing plugins.sh in Windows

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.

NodeJS not installing with 1.0 plugin

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.

Jenkins startup failure

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

sonar_error

Remove Job_Runner from conditional build step

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.

Jenkins 2.73.3 LTS upgrade

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:

screencapture-51-15-36-244-jenkins-1507969134521

anonymous is missing the Overall/Read permission

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.

Running ADOP/C locally (docker machine), get an authentication error

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

Load_Platform fail

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!

Add a pretty theme as default

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.