Where can I find the groovy API documentation containing the list of available function for Sonatype Nexus 3?
I saw the web page below which describes
core
repository
blobStore
security
https://help.sonatype.com/repomanager3/rest-and-integration-api/script-api/writing-scripts#app
... but how to know what to put after security, for example security.securitySystem.changePassword?
Thanks.
I too had looked for the specific functions for a while but didn't find any official documentation, so I went straight to the code looking for the functions:
core
repository
security
blobStore
Here are some samples that may help: https://github.com/sonatype/nexus-book-examples/tree/nexus-3.x/scripting.
The links were taken from this page: https://books.sonatype.com/nexus-book/3.0/reference/scripting.html#scripting-configuration
You should read the code itself, a good start would be Nexus3 Cookbook since it has explanations from the Nexus3 Cookbook and examples.
For API examples you can read up on them at API Examples.
System > Tasks > Create Task of Type : Admin - Execute Script.
Task name: Get all repo methods
Language: groovy
Source:
log.info(
repository.getClass().
declaredMethods.
findAll{ !it.synthetic}*.name.join(', ')
)
Run the Task
Check logs in : Support > Logging > Log Viewer
Related
I want to create CI on Github Action for QA Automation. But there is multiple language are use to install dependecies. Can i use NodeJS and Golang at the same file?
I read the documentation of Github Action, but there is configuration for each language not both. Any reference or idea i can use?
In short, you write a manifest file (in YAML) and tell GitHub Actions build agent(s) to execute the commands you wanted in an automatic way. See, there is nothing there bind to a single programming language.
You see per language samples/tutorials, simply because that's how new users/developers to get started with a CI/CD system, and it is easy to write up the necessary steps if focusing on the ecosystem of a single programming language.
The underlying GitHub Actions build machines (if managed by GitHub), however, have almost everything pre-installed, so of course you can use Node.js and Golang tools in the same manifest and you don't need any specific reference.
Open the image pages and learn what tools are preinstalled if you like.
Try it out by combining multiple manifests into the single one, and you will see how it works out.
My company is in the process of migrating all our pipelines over to Databricks from AzureML, and I have been tasked with refactoring one of our existing pipelines made with azureml-sdk (using functions such as PipelineData, PythonScriptStep etc.), and converting it into a dbx pipeline which uses a deployment.yml file.
I have found this "Deployment file reference" on dbx documentation page, and I think it's quite adequate compared to some of AzureML's documentation. However, if I had an example project to compliment that page, it would help me greatly to put it into practice.
Is there any repos/sources which gives an example of building a dbx pipeline which uses .py-files instead of notebooks?
However, if I had an example project to compliment that page, it would help me greatly to put it into practice.
Please take a look at the Quickstart doc which generates a sample project and walks you through it step by step.
If you're looking for more profound and in-depth example with orientation towards MLOps practices, take a look at the following session - MLOps on Databricks: A How-To Guide. It also links to an example repo with dbx.
I am using SAP Cloud SDK (Java flavour) to create an extension application of SuccessFactors.
I sadly discovered that the Jenkins pipeline does not allow me to use any other service than the ones listed here: SCN Blog (scroll to the Appendix).
This does not make so much sense to me, as now the SDK can be used - and it is sponsored to be used by SAP - also with SaaS in its ecosystem, SuccessFactors being one of them.
Any hint? Can this check be somehow "bypassed"?
Thanks,
Roberto.
Please note that the blog post is quite old, have you verified your assumption that it does not work with SuccessFactors API?
Nonetheless, we recently introduced a configuration option which allows you to disable certain checks, cf https://github.com/SAP/cloud-s4-sdk-pipeline/blob/master/configuration.md#s4sdkqualitychecks
checkServices is what you would want to disable in your scenario.
As stated by Florian in the comment and following the Project Piper documentation, parameters "checkServices" and "customODataServices" can be used to customize the behavior of the pipeline when running upon a non-Business Hub API.
"checkServices: false" will completely deactivated the check, whereas "customODataServices: [ yourApiName ]" will skip the check just for the specified services.
I am trying to find a good example of the json body for Create Build Definition in Azure Devops. Most of the documentation I find has api definitions, but I haven't been able to see an example json body to work from.
Microsoft Documentation:
https://learn.microsoft.com/en-us/rest/api/azure/devops/build/definitions/create?view=azure-devops-rest-5.1
I have found this article that describes doing something similar to what I hope to accomplish. However, they are trying to duplicate the same build definition across different projects.
Similar Example:
https://www.nebbiatech.com/2018/11/29/automating-build-pipeline-creation-using-azure-devops-services-rest-api/
Ultimately, I would like to be able to generate (either create new or clone/modify) as many standard build definitions within a single project as are necessary by my automation. Each one of these build definitions will pull from a different repository within the project and have a different cosmetic name for the pipeline, but will be otherwise identical.
Any suggestions are greatly appreciated. Thanks!
For the usage of YAML build as comment suggested, it will meet your requirements. It letting you define your build in a YAML file that lived with your code. This meant you could use the same branching and code review practices for your build definitions as you did for your code.
The best way to get started with YAML pipelines is through the quickstart guide and Customize your pipeline . After that, to learn how to configure your YAML pipeline the way you need it to work, see conceptual topics such as Build variables and Jobs.
As for a sample of application/json body when you use Rest API to create build definition. You could also refer below links:
How to create Build Definitions through VSTS REST API
Create VSTS Build Definitions using PowerShell
Does anybody know where the zipking examples are located ?
https://twitter.github.io/zipkin/Quickstart.html#super-quickstart
In the following I can read:
./bin/sbt "zipkin-example/run -zipkin.storage.anormdb.install=true -genSampleTraces=true"
I have found the zipking-example on Maven Central only. Not on Github.
1.2.1-rc24
It is still a bug in the documentation?
Documentation mentions zipkin-example which doesn't exist
It is a very long time ago, but it looks like it was moved here:
http://zipkin.io/pages/quickstart
Found multiple language examples at github.
If you need basic setup steps: https://zipkin.io/
Integrated zipkin with spring boot 2 and mysql
Steps
example
Here is sample