I am using Jenkins 2.121.2 with Blue Ocean 1.7.1 and, while I can access the pipeline editor via the pencil icon for a pipeline created via the Blue Ocean interface, it seems I'm unable to do the same if the pipeline has been created via the classic UI.
Both pipelines are hosted on a git server (not Github) and the same credentials have been used, one has been created as a multibranch pipeline (from Blue Ocean UI) while the other is a plain pipeline (classic UI).
Trying to access the pipeline editor via the direct URL, as suggested here doesn't work:
editor opens, but no content is displayed if I use the URL like http://host/blue/organizations/jenkins/pipeline-editor/project/
editor opens, but on an empty pipeline (which should be not) if I use the URL like http://host/blue/organizations/jenkins/pipeline-editor/project/master
Any solution to this? Am I missing something?
Since Blue Ocean is still under development, it is one of the limitation it has.
You can check this thread on how to do it right now
Cant open Blue Ocean visual pipeline editor
Basically, you need to click Ctrl+S when you entered the direct link and then copy paste the whole Jenkinsfile code.
Related
Is there a way to automate a task a webpage login and download report maybe with power-automate or some other method?
open web page
enter any parameters.
click download button.
save download to local drive.
Thanks
Yes it is possible to automate it using Power Automate Desktop, you can take control of the browser, If the webpage structure remains the same and the login doesn't ask additional captcha except usual login and password fields.
You can configure the automation by
First opening the webpage using Browser Control in PAD(Power Automate Desktop)
Entering the username password can be automatically done with PAD (both should
be defined in the
automation)
Capture the web element using the action to click a button - either to
navigate the page or download something.
Can save the file into local system using PAD by usual browser download or mentioning separate path in the automation.
If you know how to code such as Python. Then Selenium,playwright,Clicknium would be a good choice. Clicknium should be the most simple one, but it can only run in Windows. In include a Recorder to identity the UI element and include APIs for click and set_text.
If you don't want to code, you can use RPA tools, such as power automate and UI path.
I want to publish my Docker container to AWS using the Visual Studio interface. I want to specify a custom Docker profile in Visual Studio. I can't seem to connect to AWS that way, though. (Validate Connection always fails.) Is this possible?
I am able to docker build, push to Docker Hub, ssh into my EC2 server (living within ECS), and successfully docker pull, but I'd really like to simplify the process and bypass Docker Hub if possible.
I specified tcp://[my ec2 server]:2376 as the Server URL. I specified the other fields as appropriate. Do I need to specify particular Auth or Run options?
It depends on which AWS region you're using. ECS has a "Repositories" host, sibling to the Clusters and Task Definitions, that's available (for now) only to us-east-1 and us-west-2. When you create a repository, at the top of the page there's an expandable header titled, "Build, Tag, and Push Docker Image". It will give you the instructions for pushing the image.
The Amazon ECS Developer Guide has a "Repositories" page for more information.
Tip: trying to login was not immediately clear from the instructions. Running the aws ecr get-login command will respond with the entire login command that you'll need to execute, but it's an extremely long command. You have to be familiar with copy-and-paste in the terminal. (I was not.)
To copy-and-paste in the terminal,
Click the icon in the top left of the window.
Select Edit > Mark.
Highlight the full width of all the rows.
Select Edit > Copy.
Open notepad, and paste the text.
Remove all line breaks.
Copy everything back to the terminal at the command line (Edit > Paste).
Run the command, and you should now be able to follow the rest of the instructions.
I would like to automate a quick start of SQL-MVC.
Can I set a script to run automatically after a git repo is cloned? like this:
auto-run.sh
Also, is it possible to launch a browser window to automatically open to the applications URL at the end of the script?
I have checked all the docs, but I don't find anything on the subject.
From the Git book src:
It’s important to note that client-side hooks are not copied when you clone a repository. If your intent with these scripts is to enforce a policy, you’ll probably want to do that on the server side; see the example in “An Example Git-Enforced Policy”.
So, the automatic running of a script on clone is not going to work. However, you can commit the auto-run.sh file within your repository and ask the user to run that after cloning.
You can open a new browser window on your local machine by adding the correct command within the shell script, (for example, on a mac I usually just use open). However, since Cloud9 workspace doesn't have a window manager, you won't be able to do that from the Cloud9 Terminal. One way to open a browser pane within Cloud9 IDE (not in another tab, I don't think that's possible) is to echo the url, and ask the user to click on it at the end of the script, so something like this:
Please click https://www.google.com to continue
and the Cloud9 terminal is smart enough to open the url in a new browser pane within the IDE when the user clicks on the url.
I need a tool to capture and attach screenshots in TFS team web access. Instead of having some thrid party tool that captures and saves images on disk and then you have to attach that image to a bug like bugshooting. I want something integrated within TFS.
In VS11 it is possible to copy and paste your screen shots in the description field of the work item. You can check out the VS11 Beta version yourself.
There's nothing integrated in VS, but there are a couple of easy options:
use the standard Windows screenshot function. Alt-PrtScrn will capture the current window, and then you can paste into your work item's Attachments pane. It'll create a generic filename and attach as a PNG.
if you're using Win7, try the "Snipping tool" (just press Start and type "snip" to find it). That will capture a specified area and can then copy it to the clipboard or save to a file. If you copy & paste you still have the problem of generic filenames, though, so personally I still tend to save it myself.
As #Hofman said, you can do it with VS 11 beta, so you can use MS Paint or even SnagIt, for how to do it just see the following link:
http://mohamedradwan.wordpress.com/2012/02/29/new-enhancement-in-mtm-11-preview/
You may want to check the Capture Custom Control - you can use it to embed a "Capture" button in your work items. It automatically attaches the screenshot to your work item.
Check it out at http://witcustomcontrols.codeplex.com/wikipage?title=Screenshot%20controls&ProjectName=witcustomcontrols
there are a very powerful tool which comes with Windows Server 2008 (Actually I'm not sure if it comes with windows 8 or 7)
never-mine.., the tool called "Record Steps To Reproduce the Problems" , this tool built for Taking screenshots of doing any thing in your machine step by step... WOW
You just need to open the start panel and then write "record steps to reproduce a problem". starting record, and make you job that you want, then when you finish stop recording and save the zip file in your machine.
the zip file will expose a word document contains every single click that you make and every page you've open with some description.
So I have a website running that displays full path of a TFS File on the page somewhere, I want the user to be able to click on it, which should then open up that file from TFS inside their Visual Studio.
The command to do this inside Visual Studio is "File.TfsOpenFromSourceControl" (DTE command) - it's basically the user manually going to that file using the Source control explorer and double clicking to open it up.
I am wanting to simulate that action from my web app inside the browser.
Update: The Web app is a pure ASPNet MVC app with Jquery available to it. I am already showing the file's content to the user in the web app. But I want the user to open the same file in Visual studio, by clicking on the file path in the web app. The question is more of Browser to VS integration and how to execute the DTE command in question, from within the web app context of the browser.
Any clues would be helpful
I don't know the answer to Pavel's question, so I'll sketch an outline of both solutions.
If you want to display the file inside the browser, call the Item.DownloadFile() API. NB: in 2008 SP1 there is another overload of this method that allows streaming into a memory buffer instead of writing directly to the filesystem. If you don't already work with Item objects directly, you can retrieve them via the GetItem() / GetItems() APIs.
If you want to make the file open in VS, there are a couple approaches. Perhaps your web app already includes the concept of local workspace(s) for the user, similar to Source Control Explorer. If so, you'd simply call Workspace.GetLocalItemForServerItem() to find the local path of the item, then ShellExecute it. (Or maybe pass it as a command line parameter to devenv.exe, if it's not natively associated with VS.) If not, you can either create a temporary workspace on behalf of the user, or use the same DownloadFile() API shown before; stream the contents to the client over a web service, save to disk, then launch VS as before.
Naturally, the more involved scenarios under option #2 will require deeper OS integration than the DOM / Javascript can provide. Would help to know if this web app is already built on ActiveX, Flash, Silverlight, XBAP, or similar technology...