Score:0

Jenkins build failure for python script in github using ubuntu version 22.04.2 LTS

md flag

I created a simple python code in my github repo with the following:

import numpy as np 
import matplotlib as plt
a=np.arange(1,5).reshape(4,1) 
print(a)
print(a.data)
print(a**2)
print(a.dtype)

I integrated my GitHub with Jenkins.

I build a job with freestyle project name it project1.

I put my repo url in the scm and my credential.

I used build trigger as GitHub hook.

In the build step I used shell script

python3 numpy.py

saved it and when trying to build it shows failure

saying no module matplotlib and numpy linag something like this.

Why I am not able to build it.

I am using ubuntu version 22.04.2 LTS

What should I write in the execution shell

David avatar
cn flag
Is there any Ubuntu product involved?
Rising Sun avatar
md flag
I am using ubuntu and wrote and run the code on PyCharm and then created a GitHub repo. While trying to build and test it showed failure
David avatar
cn flag
Then in the question it needs to say the version of Ubuntu you are using.
Rising Sun avatar
md flag
ubuntu version 22.04.2 LTS
David avatar
cn flag
In the question with the edit command not as a comment.
Rising Sun avatar
md flag
What may be the issue in my setup brother. Can you help me out here?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.