header 1
header 2
cell 1enter image description here
cell 2enter image description here
cell 3enter image description here
cell 4enter image description here
I am new to jenkins and im creating a project using pipelin when i put the script in jekinsfile its giving me error. Also attaching the script from jenkins fileenter image description here
Related
My application is trying to insert a bunch of images to google drive sheet using google app script.
The script method is calling from a Rails app as following:
#app_script.run_script(script_id, request)
The script method is trying to fetch the image through the id and insert it to the sheet.
var srcfile = DriveApp.getFileById(object.image_file_id);
srcfile.setSharing(DriveApp.Access.ANYONE_WITH_LINK, DriveApp.Permission.VIEW);
var image = SpreadsheetApp.openById(object.spreadsheet_id).getSheetByName(object.sheet_name).insertImage(Drive.Files.get(srcfile.getId()).webContentLink, object.column, object.row);
The problem is coming intermittently with the response error from google script:
Exception: Error retrieving image from URL or bad URL: https://drive.google.com/uc?id=1yZULGInEcjQ_nA4j_Nmy6F2e3JcYnLFP&export=download
Note that I can download the image successful if I just copy the link and paste it to browser.
The image file and its parent folder are public share.
It seem hard to detect the problem when it does not always happen.
For those who concern about my script, it is here
Exception: Error retrieving image from URL or bad URL
This is a common error message when the image size is too big.
See here for more information.
You need to recuce the image size - either manually or programmatically - before inserting.
UPDATE
If the suggestion above does not solve your issue, implement the following workaround:
Instead of inserting the image by its webContentLink with the method insertImage(url, column, row) , use the method insertImage(blobSource, column, row):
var image = SpreadsheetApp.SpreadsheetApp.openById(object.spreadsheet_id).getSheetByName(object.sheet_name).insertImage(DriveApp.getFileById(srcfile.getId()).getBlob(), object.column, object.row);
This should solve the issue.
I have downloaded 8th wall web starter project from github. I am trying to run flyer demo locally.
Flyer demo index.html, I have replaced app key with newly created web project with 8th wall console.
Next, code below is used to achieve image target functionality
<!-- Note: "name:" must be set to the name of the image target uploaded to the 8th Wall Console -->
<a-entity
xrextras-named-image-target="name: video-target"
xrextras-play-video="video: #jelly-video; thumb: #jelly-thumb; canstop: true"
geometry="primitive: plane; height: 1; width: 0.79;">
</a-entity>
<!-- Note: "name:" must be set to the name of the image target uploaded to the 8th Wall Console -->
<a-entity xrextras-named-image-target="name: model-target">
<!-- Add a child entity that can be rotated independently of the image target. -->
<a-entity xrextras-one-finger-rotate gltf-model="#jelly-glb"></a-entity>
</a-entity>
So in order to make above code work, I have uploaded two image from images folder inside flyer demo to 8th wall console with name mentioned in above code. When I am running this, image target is not detecting for both the images.
When I saw the documentation on the internet as well as here, I found that when you upload image target on 8th wall console, there is option to save and Enable however when uploading I can not see Enable option. Is this the reason image target is not working or do I need to publish 8th wall web app which include pricing to make this image target work?
Kindly help
Based on your code snippet, the xrextras-named-image-target component is looking for image targets named "video-target" and "model-target". Make sure these strings match the names of the image targets uploaded to the console.
Additionally, make sure the image targets are set to "Load Automatically". If not, edit the image target, check the "load automatically" and save the image target.
I have the same isue, and it returns an error in the editor wit the XR8.Controller line.
<a-scene
landing-page
xrextras-loading
xrextras-runtime-error
xrweb="disableWorldTracking: true"
XR8.XrController.configure({disableWorldTracking: true})
XR8.XrController.configure({imageTargets: ['advImg', 'anssImg', 'ar1Img', 'ar2Img', 'ar3Img', 'ds1Img', 'ds2Img', 'ds3Img', 'egImg', 'exjImg', 'jaImg', 'jr1Img', 'jr2Img', 'jr3Img', 'jvt1Img', 'jvt2Img', 'jvt3Img', 'lecImg', 'ow1Img', 'ow2Img', 'ow3Img', 'rb1Img', 'rb2Img', 'rb3Img', 'svImg']})
>
The line about disableWorldTracking doesn't return an error, but I can only see 5 image targets are active in the debugging mode, despite the world tracking has been disabled.
I have automation project which i'm running through Jenkins . With build successful or failure all html reports are being displayed after i click on link "Cucumber Feature Level Overview Report" .
Added dependency in pom
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>email-ext</artifactId>
<version>2.25</version>
</dependency>
Added code in jenkins job :-
Section : Editable Email Notification -> Default Content
${FILE,path="https://jenkins.company.com/dareProject/job/Automation_Jobs/job/Dare_Project_job/Cucumber_Steps_Level_Overview_Report/"}
The mail which i'm getting with error :-
ERROR: File 'https://jenkins.company.com/dareProject/job/Automation_Jobs/job/Dare_Project_job/Cucumber_Steps_Level_Overview_Report/' does not exist
And how to display report in Body Text of email ?
The mail which i'm getting with error
In path parameter you must use the location of file in filesystem relative to job's workspace, not the hyperlink to it!
And how to display report in Body Text of email ?
Set correct path in Default Content field and choose HTML (text/html) in Content Type field.
I generated the html webpage in jenkins jobs and try to success/failure icons inside.
But I noticed it is linked to the url with some random number 9b17c509 in the path
https://ci.jenkins.io/static/9b17c509/images/32x32/red.png
What I preferred is the fixed url for every jenkins instance like
https://ci.jenkins.io/static/images/32x32/blue.png
Any suggestion to solve it ?
BTW: I don't want to connect to external web for those images
9b17c509 looks like a cache.
We can use /images/32x32/blue.png
see https://ci.jenkins.io/images/32x32/blue.png
For a hudson.model.Result or the result name like "SUCCESS" you can get a ball icon with hudson.model.BallColor .
In Groovy
def iconUrl = (result as BallColor).getImageOf("16x16")
I am trying to read image deep in TEMP folder with Image.read method in order to convert it.
I've seen example like this
I've tried this
InitializeMagick("C:\\Users\\GrayMP\\AppData\\Local\\Temp\\ImageMagick\\Images\\");
Image image;
image.read("result-0.bmp");
and this
InitializeMagick("");
Image image;
image.read("C:\\Users\\GrayMP\\AppData\\Local\\Temp\\ImageMagick\\Images\\result-0.bmp");
, but I catch next exception.what():
app.exe: unable to open image `↑Ё)': Invalid argument # error/blob.c/Op
enBlob/2674
Convertion via ImageMagic works fine, I can do all what I want, but, lib integration doesn't work.
I can't get what I am doing wrong