Is there a Jenkins build parameter for artifacts? - build

I would like to refer to the artifact URL in a deploy job I'm creating. How can I do that?
For example - when I select a build from the Build History I get to the build page. If I right click on a build artifact, I can copy the link. The link looks something like:
h_t_t_p://....../artifact/...../xyz.rpm
Can I refer to that using a build parameter or environment variable?
thanks.

If you always want to deploy the latest version of the artifact, there is a permalink that you can use:
http://jenkins-server/job/job-name/lastSuccessfulBuild/artifact/path/to/artifact

Related

How to change from 10 to 100 (items per page) in publisher and devportal

This is second question today.
Does anyone know how to change the apis view number below from 10 to 100 by default?
(API Manager 4.0 using)
Thanks.
This is not configurable out of the box. In case of developer portal, you may need to do customization for ApiTableView.jsx or use option of changing it from the "Items per page" drop-down itself.
There is no config to change this value. You will need to do the customization in the source code files. For the publisher portal, you need to update the TableView.jsx file. To do this you need to copy the specific file to publisher/override/src directory, update it with changes and finally build the react app.
Step 1: Copy the TableView.jsx to <API-M_HOME>/repository/deployment/server/jaggeryapps/publisher/override/src/app/components/Apis/Listing/TableView directory(you will be manually create the directory path to match the source file location)
Step 2: Make the necessary changes
Step 3: Build the react app.
Navigate to <API-M_HOME>/repository/deployment/server/jaggeryapps and run the following commands to install the npm packages and bootstrap,
npm install
npm run bootstrap
Once the above is completed run the following command npm run build:prod from the devportal directory.
Please refer the official documentation Advanced UI Customization for more information.

I deploy project on GITHUB pages not appear on browser

I deploy an angular project on GitHub successfully but when I click on the link of the project documentation appear instead of project How can I open the project on browser. the link of the project is https://khaledelmasry247.github.io/myNote/
This is Jekyll that runs by default on GitHub Pages.
You can disable it by adding the file .nojekyll in the root of your project.
More here:
https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/
I have faced the similar issue long back with my repository. You can check these steps:
navigate to repository
Go to settings of your repository
In the options section, navgate to github pages.
In the source select "root" as shown below.
Then check it once.
In order for GitHub pages to work with your project, you will need to build the angular project and push the built artifacts to your repository. You will also need to tell GitHub which directory to look at for your built files. It will look for index.html by default. Looking at your repo, it looks like you have already built your project and the files are in your gh-pages branch. You will need to do something like #KushalSeth suggests, except in your instance, you will have to change it to look at the gh-pages branch.
Click on the Settings for your project.
Scroll down to the GitHub Pages section.
Change the branch to your gh-pages branch.
Save.

Django deployment tool

I am looking for ready made deployment tool for django. Looking for tools like following which uses config files value to make deployment.
Meteor-up for deployment of meteor.js project.
python-lambda for department of python code to AWS lambda.
I have created dockdj python tool, given that I didn't find the deployment tool like Meteor-up for Django.
Please find the link to the dockdj here: https://github.com/pavanputhra/dockdj

Can't run my node js project in the Google Cloud Platform

I just clone my git to the Google cloud platform. And Im trying to deploy it.
As I type "gcloud app deploy" it says:
And I have a file app.yaml and it looks like this:
# [START app_yaml]
runtime: nodejs
vm: true
I also tried changing the directory but cannot find the repo dir..
Please help!
Thanks!
The error message indicates that the tool is unable to automatically detect the application's configuration file. Which could be caused by the now deprecated older generation of flexible apps configuration, using the vm: true statement. See cloud.google.com/appengine/docs/flexible/python/upgrading.
You should use the current flexible app configuration. I'd also suggest passing the actual app.yaml as argument to the deploying command, auto-detection might not always work as one expects.

Can I specify Git URLs as dependencies in Buck?

I am using Buck to build a C++ project.
I would like to add a Git URL (e.g. git#github.com:owner/project.git) as a dependency so that a build can automatically pull down a library from GitHub. I took a look at remote_file, but that only seems to work for HTTP, HTTPS and Maven.
Does Buck provide this functionality out-of-the-box?
If so, is it possible to specify a specific commit hash or tag?
Buck does not support remote Git URLs.
Your options are:
Copy the code manually into your project
Use an equivalent .zip URL (GitHub gives you these)
Use submodules, such as in this example
Use a package manager that supports Buck, such as Buckaroo