Comments (4)
Hello @MounikaBandaru8 and thank you for using Frogbot!
As it seems from the single error line you provided there is an issue with the schema of frogbot-config.yml or withthe file's location.
Can you please provide the frogbot-config.yml you use and its path from your root directory in your main/master branch?
from frogbot.
Hii thanks for the reply,
Actually i followed this documentation https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot/setup-frogbot/setup-frogbot-using-jenkins
here they didnt mentioned in any step to create frogbot-config.yaml file.
This is the pipeline script in jenkins
// Run the job once a day
CRON_SETTINGS = '''0 0 * * *'''
pipeline {
agent{
node {
label 'API-PERFORMANCE-TEST'
}
}
triggers {
cron(CRON_SETTINGS)
}
environment {
// [Mandatory]
// Username of the account associated with the Git access token
JF_GIT_USERNAME = "Mounika"
// [Mandatory]
// Owner of the repository
// BitbucketServer note: Private projects should start with the prefix: "~"
// JF_GIT_OWNER = "SWFTA"
JF_GIT_OWNER="SWFTA"
// [Mandatory]
// Name of the repository to scan
JF_GIT_REPO = "functional-test"
// [Mandatory]
// Name of the git provider, one of the following: [bitbucketServer,github,gitlab,azureRepos]
JF_GIT_PROVIDER = "bitbucketServer"
// [Mandatory]
// JFrog platform URL (This functionality requires version 3.29.0 or above of Xray)
JF_URL = credentials("JF_URL")
// [Mandatory if JF_USER and JF_PASSWORD are not provided]
// JFrog access token with 'read' permissions for Xray
JF_ACCESS_TOKEN = credentials("JF_ACCESS_TOKEN")
// [Mandatory]
// GitHub enterprise server access token with the following permissions:
// Read and Write access to code, pull requests, security events, and workflows
JF_GIT_TOKEN = credentials("JF_GIT_TOKEN")
}
stages {
stage('Download Frogbot') {
steps {
script{
powershell "Set-ExecutionPolicy Bypass -Scope CurrentUser -Force; Invoke-WebRequest -Uri 'https://releases.jfrog.io/artifactory/frogbot/v2/[RELEASE]/frogbot-windows-amd64/frogbot.exe' -OutFile './frogbot.exe'"
bat 'dir'
}
}
}
stage('Scan Repository') {
steps {
bat '.\\frogbot.exe scan-repository'
}
}
}
}
and this is the error i am encountering
[Error] Get "/rest/api/1.0/projects/SWFTA/repos/functional-test/raw/.frogbot/frogbot-config.yml?at=": unsupported protocol scheme ""
can you please check this and help me out
from frogbot.
You need to set JF_GIT_API_ENDPOINT to the url of your bitbucketServer instance.
from frogbot.
Hello again @MounikaBandaru8
What @medhost-nwatson said above is correct and you need to set JF_GIT_API_ENDPOINT to the url of your BitbucketServer.
The frogbot-config.yml I mentioned earlier is yet another configuration file that enables you a higher level of customization for you Frogbot execution settings and enables you to define some advanced configurations that are unavailable through the CI file sometimes.
My assumption is that you didn't set JF_GIT_API_ENDPOINT so Frogbot is referring to frogbot-config.yml to search a value for this env var (since it is mandatory for a bitbucket server). Since Frogbot is unable to find this file (I assume it doesn't exist, which is ok since it is not mandatory file) and fails.
Please try the above suggestion and define JF_GIT_API_ENDPOINT. If it doesn't help I'd love to hear from you and help you resolve the issue.
If this worked for you I'd appreciate if you let us know so we can close this issue :)
from frogbot.
Related Issues (20)
- git clone failed with error: authentication required HOT 2
- License violations don't include Severity. Also lots of licenses get reported as Unknown. HOT 19
- Fails to scan custom python packages HOT 2
- can be deleted
- Support for yarn3 workspaces? HOT 2
- Question HOT 2
- How to exclude scanning the devDependencies for npm / js projects? HOT 2
- Update action to use node 20 HOT 1
- OIDC Support to Frogbot HOT 3
- Problems executing frogbot in Enterprise env without internet connection HOT 8
- Receiving error: ./frogbot: No such file or directory HOT 3
- JFrog reports a go.mod file as being in the root when it isn't HOT 5
- Skip problematic dependency update HOT 1
- Version 2.8.0-RC1 is not available for artifact commons-io:commons-io HOT 1
- Frogbot opened PRs not showing in bitbucket HOT 1
- Couldn't update "org.springframework.ws:spring-ws" to suggested fix version: Version 2.4.4 is not available for artifact HOT 1
- Code Scan is not working for C# project HOT 5
- Raising of GitHub Security events for vulnerable packages HOT 3
- When Frogbot Scan fails for any reason, no comment is added to PR HOT 4
- GitLab Pipeline Artifacts/Reports HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frogbot.