how to delete an image from nexus along with the directory - nexus

As part of our CI,we are uploading a temporary docker image by creating a temporary folder.
our requirement is to delete the entire folder along with artifact from nexus after the end of the pipeline and for this we are using command
DELETE /service/rest/v1/components/{id}
but the above command is only deleting the artifact not the complete folder.
COuld anyone assist me on this?

Related

Unable to push Repo from "react-native-firebase-starter" template

I cloned this repo to start my own project
https://github.com/invertase/react-native-firebase-starter
I have made some modifications and got it setup for Firebase, however I cannot push or rename the Repository.
I ran npm run rename and renamed the directory. GitHub still seems to think I am trying to push the orginal repository as my own.
When I try to push I get:
Authentication failed. You may not have permission to access the repository or the repository may have been archived...
How can I keep this template/starter and push a copy of it as my own repository?
I have tried removing all of the inessential files from the Repo and pushing that way. I get the following error:
I expected to be able to use the starter as a starter to get a project up and running... Maybe I am missing something super obvious.
I don't see a .git folder within the root of the react-native-firebase-starter template, perhaps this is causing issues with pushing this template since git needs to know where to point to upstream.
Maybe you could try initializing the template to your personal git repository and seeing if this resolves your authentication issue:
Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files.
Initialize the local directory containing the template as a Git repository:
git init
Add the files in your new local repository. This stages them for the first commit:
git add .
Commit the files that you've staged in your local repository:
git commit -m "Initial commit"
At the top of your GitHub repository ,created in step 1, copy the remote repository URL.
Add the URL for the remote repository where your local repository will be pushed:
git remote add origin <remote_repository_url>
Push the changes in your local repository to your upstream repository contained in GitHub:
git push -u origin master
You should now be able to push this starter template into your own GitHub repository and use it as your own project.
As for the npm run rename command: this is a custom npm run script created by the author of this starter template and it simply runs the rename.js file contained within the .bin directory of the template's root directory. All this command does is recursively rename the files contained within this template project to the new name specified by your input, so I don't think this is causing the issue. I suspect once your project has been initialized properly with git the authentication issue will disappear as it will now point upstream to your personal repository.
Hopefully that helps!

how to avoid symfony 4 for creating default folders in src

How I can avoid creating folders like Controller, Entity and so on inside of src directory when I'm running composer install as I'm using different folder structure in my application and it's annoying to delete that folders each time I run composer install by the first time on some machine
These folders are created by different flex recipes ONCE.
Example for symfony/framework-bundle:
https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/4.2/manifest.json#L8
After successful installation these changes are tracked into symfony.lock file.
Do you have that file? It needs to be added to VCS like composer.json/composer.lock
Then delete the unneeded folders from filesystem. They should not be created again.
Source:
https://github.com/symfony/flex/issues/419

sails.js v0.11.0 assets not being copied

I'm new to node.js, sails.js and grunt.js.
When I run "sails lift" it does not create the .tmp folder and copy the assets to that folder.
However, when I run "grunt" in the project folder, the .tmp folder does get created and the assets do get copied over.
Anyone have suggestions on how to fix so "sails lift" works without calling "grunt"?
Check if the sails process has the right privileges and you're not running short of space.
Also, try manually deleting the .tmp folder and lifting again. Sometimes there can be issues with automatic file removal if any of the files are in use.

How can I clone / create a copy of my local meteor app?

How can I create a copy of my entire local meteor application? I was expecting a command like "meteor clone myapp" but couldn't find any documentation and simply copying the folder doesn't work.
You could use git to clone the whole thing.
If you aren't familiar with git see this reference. http://gitref.org/creating/
In windows, you can copy and paste the entire project directory and go into .meteor/local directory and delete everything in that directory except the db directory. Then start the meteor server on the new project directory, with everything deleted in the .meteor/local directory, meteor will rebuild the project without altering the logic of your application.

Not able to create war file in netbeans

Hello I am trying to create a war file in netbeans7.0 but I am not able to create it. It is showing following error
Deleting directory C:\Documents and Settings\a\My Documents\NetBeansProjects\ABC\build
C:\Documents and Settings\a\My Documents\NetBeansProjects\ABC\nbproject\build-impl.xml:1109: Unable to delete file C:\Documents and Settings\a\My Documents\NetBeansProjects\ABC\build\web\WEB-INF\lib\asm-3.1.jar
This typically happens when trying to clean before the build, and GlassFish has a lock on a file that needs to be deleted in the clean process.
Try just doing build (without clean), or shut down GlassFish and then clean and build.

Resources