Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Change Velocity plugin integration with GitHub

User687957
Mega Guru

Dear all,

 

I am actually checking how the integration of Devops plugin with GitHub works

I go thoright the too configuration from thw workspace area and then connect to my test GitHUb
Connection is ok but no repo gets disover

When I hit my github using given credential I get the configured repo so auth works fine

 

When I finishe the configuration and click on View Tools record , it jump me to the follwoing page

qNewRCllEl.png

From that point if I click on Discover button I get the folling error message :

"Tool discovery cannot be completed because import request was not created. The admin user cannot Create record on the Import Request table. Verify if the admin user has Create access or if there is any customization on the Import Request table blocking Create."

Please note that I am runing all this as a Sytem Adminitrator so I expect to get full rights

Any help would be apreciate how to solve this adn reply to follwing question :


ON my github for now I have create a test repo which has been initialise and I jave a webhook configuration set as :
chrome_fVKq6eGgGv.png


Q1 : Why it is saying that it need attention on Webhook ?

Q2 : It is not clear from documentation how the integration should work from github side. Should I simply push code in the repo and servicenow will detect it ?

Q3 : I have read that when something happen in github, servicenow is suppose to create a change request correct ?

That to help and clarify this.
PLeas to do simply redirect me to official doc whith I read for this intergation but is really wierd at some points so I realy expec feedback esperience from you all on such integration

regards

2 REPLIES 2

tonychaffe
Tera Contributor

Hi @User687957

 

Ran into this recently, have a look at this and see if it helps:

Debugging GitHub Tool and Repo Discovery in ServiceNow DevOps Change Velocity

User687957
Mega Guru

Hello @tonychaffe , I get exactly same status as reported by this document except that I could not find in log files the exception he reports.

Actually from my side, when I push a file in my github, the webhook is fired and send the payload as ok (201 ) rsponse. So the paylaod reach servicenow but then I do not know what to check next and from where


The only thing I see in log table when pushing a file sîs the follqing record as information:
"source=InboundEventHandler,capability=code,event_process_time=592,number=IBE0001004"
"source : sn_devops

From error log I get the follwoing :
"

com.glide.hermes.HermesHealthStatus: Problem getting cluster identifiers. Will skip. Cluster: ycg: java.util.concurrent.TimeoutException
java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960)
java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095)
org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:180)
com.glide.hermes.client.glide.infra.HermesHealthStatus.getClusterIdentifiers(HermesHealthStatus.java:335)
com.glide.hermes.client.glide.infra.HermesHealthStatus.performHealthCheck(HermesHealthStatus.java:124)
com.glide.hermes.client.glide.infra.ScriptableHermesHealthStatus.lambda$jsFunction_performHealthCheck$0(ScriptableHermesHealthStatus.java:47)
java.base/java.util.HashMap.forEach(HashMap.java:1421)
com.glide.hermes.client.glide.infra.ScriptableHermesHealthStatus.jsFunction_performHealthCheck(ScriptableHermesHealthStatus.java:46)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:569)
org.mozilla.javascript.MemberBox.invoke(MemberBox.java:229)
org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:693)
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:622)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:3194)
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1968)
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:940)
org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:127)
com.glide.caller.gen.RunScriptJob.call(Unknown Source)
com.glide.script.ScriptCaller.call(ScriptCaller.java:22)
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:125)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:722)
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:4812)
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:141)
com.glide.script.ScriptCompiler.executeAndPublishMetric(ScriptCompiler.java:83)
com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:552)
com.glide.script.ScriptEvaluator.evaluate(ScriptEvaluator.java:254)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:442)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:166)
com.glide.script.Evaluator.evaluatePossiblePrefixedString(Evaluator.java:237)
com.glide.script.Evaluator.evaluatePossiblePrefixedString(Evaluator.java:217)
com.glide.job.RunScriptJob.evaluateScript(RunScriptJob.java:186)
com.glide.job.RunScriptJob.execute(RunScriptJob.java:91)
com.glide.schedule.JobExecutor.lambda$executeJob$1(JobExecutor.java:216)
com.snc.db.data_replicate.replicator.DataReplicationAdvisors.runInOriginatorContext(DataReplicationAdvisors.java:74)
com.glide.schedule.JobExecutor.lambda$inDataReplicationContext$3(JobExecutor.java:246)
com.glide.schedule.JobExecutor.executeJob(JobExecutor.java:219)
com.glide.schedule.JobExecutor.execute(JobExecutor.java:195)
com.glide.schedule.JobExecutor.execute(JobExecutor.java:184)
com.glide.schedule_v2.SchedulerWorkerThread.executeJob(SchedulerWorkerThread.java:623)
com.glide.schedule_v2.SchedulerWorkerThread.lambda$process$3(SchedulerWorkerThread.java:409)
com.glide.worker.TransactionalWorkerThread.executeInTransaction(TransactionalWorkerThread.java:35)
com.glide.schedule_v2.SchedulerWorkerThread.process(SchedulerWorkerThread.java:409)
com.glide.schedule_v2.SchedulerWorkerThread.run(SchedulerWorkerThread.java:183)
: no thrown error"
"source : com.glide.ui.ServletErrorListener"

So wierd 😞

Can you give help how to debug correctly as I could not find in log or I do not enter correct search . Servicenoq log entries is always a nightmare to find something

 

Thanks for help
regards