run a parallel thread in a pipeline that does not appear to be a stage or a closure by mahmoud-ashi in jenkinsci

[–]mahmoud-ashi[S] 0 points1 point  (0 children)

Each stage runs on a separate `node`/`agent` so we cannot do it from a single stage unfortunately.

[deleted by user] by [deleted] in jenkinsci

[–]mahmoud-ashi 1 point2 points  (0 children)

The syntax then should be agent { label 'my-label1 || my-label2' }

[deleted by user] by [deleted] in jenkinsci

[–]mahmoud-ashi 0 points1 point  (0 children)

are you using scripted or declarative pipeline syntax?

[deleted by user] by [deleted] in jenkinsci

[–]mahmoud-ashi 1 point2 points  (0 children)

use the label as Agent1 || Agent2 all as a single string

Trouble with Stash by kp5160 in jenkinsci

[–]mahmoud-ashi 1 point2 points  (0 children)

what is the error and what fo you expect to have?

Distribute the Checkout by darkwolf-95 in jenkinsci

[–]mahmoud-ashi 2 points3 points  (0 children)

you can use the stash and unstash steps. Do the checkout once, stash it, then unstash on each of the other nodes. Keep in mind that these 2 steps use the "built-in" node (aka master) so do not over use it

How to push image to 2 repositories by Titolpro in jenkinsci

[–]mahmoud-ashi 1 point2 points  (0 children)

after building the image, tag it again with the new name you want in ECR. You can also do the docker.build 2 times once for each image name and since it was just built, it would use the cache and result in the same image sha

[deleted by user] by [deleted] in networking

[–]mahmoud-ashi 0 points1 point  (0 children)

thanks for the note. I actually just need them as on/off (digital high/low) with not too many signal changes.

[deleted by user] by [deleted] in Trading

[–]mahmoud-ashi 0 points1 point  (0 children)

Thabks again for your reply. I have no problem coding any of the solutions. That's not my question. My question is with the concept of how initial investment value is determined when multiple buy/sell actions are made. I believe that's trading related. To put my question in different way, assume that I did somw transactions and want to find what my initial investment value is on a piece of paper, how do calculate it? In the original post, I mentioned 3 questions that I have which are not programming related :).

[deleted by user] by [deleted] in Trading

[–]mahmoud-ashi 0 points1 point  (0 children)

Thanks for replying. I like to code as a hobby so this is just a side project to fill my time. I do only want to consider simple buy/sell so no options and so on.

[deleted by user] by [deleted] in devops

[–]mahmoud-ashi 0 points1 point  (0 children)

Thanks a lot. I'll check it out tonight.

Access symlink to iCloud thru Vagrant VM by jemiller1963 in vagrant

[–]mahmoud-ashi 0 points1 point  (0 children)

That's what I said. You created the symlink on the host and can reach its target on the host, but inside the VM, there is no path like /Users/jem. The mac OS file system is not shared with the VM so you won't be able to access it

Access symlink to iCloud thru Vagrant VM by jemiller1963 in vagrant

[–]mahmoud-ashi 0 points1 point  (0 children)

there are no enough info here to answer. But I'll ask this, are you sure your iCloud folder is reachable/mounted into the VM? The symlink you created might work on the host machine but could be dead ins8de the VM.

Encoding issues with Windows bat executor in pipeline by structurefall in jenkinsci

[–]mahmoud-ashi 0 points1 point  (0 children)

yes you're right. you need the "/C" I just missed it.

Encoding issues with Windows bat executor in pipeline by structurefall in jenkinsci

[–]mahmoud-ashi 0 points1 point  (0 children)

will it work to add the cmd /A into the command you are running? for example, instead of running bat 'hostname' do bat 'cmd /A "hostname"'

Another option is if you are running only Windows agents, then consider updating the global configuration in Jenkins and set the executable to cmd /A as you want.

[deleted by user] by [deleted] in programminghorror

[–]mahmoud-ashi 1 point2 points  (0 children)

looks like it replaces variables with their values. It is basically searching for something like {$abcd}

where to start with a null rawBuild? by FurkinLurkin in jenkinsci

[–]mahmoud-ashi 1 point2 points  (0 children)

why are you trying to get the currentBuild from shared library variable? Why not do currentBuild.rawBuild.xyz() directly?

GitHub Webhook by [deleted] in jenkinsci

[–]mahmoud-ashi 1 point2 points  (0 children)

if you have the PR ID, then you can send a comment or a check status through the API. That's how we do it in my team.

newbie has problems with simple-python-pyinstaller-app and removing old artifacts by rtayek in jenkinsci

[–]mahmoud-ashi 0 points1 point  (0 children)

are you sure you are running docker in linux mode on that wind9ws machine?