In Jenkins it is possible to customise/parameterise the application with so called "System Properties". In the console you can manage to set properties like the following:
System.setProperty("hudson.plugins.active_directory.ActiveDirectorySecurityRealm.forceLdaps", "true")
With the code of println and System.getProperty it is possible to see the value, which in this case is true. You can also view this on the page itself when navigating to /systemInfo in the URL.
Is it possible to remove the System Property by code? I searched the documentation of Jenkins but no luck. Another topic I found with the same problem is dead since 2012-2013.
I tried the following, unfortunately without success:
System.getProperty("hudson.plugins.active_directory.ActiveDirectorySecurityRealm.forceLdaps").remove()
System.removeProperty("hudson.plugins.active_directory.ActiveDirectorySecurityRealm.forceLdaps")
System.setProperty("hudson.plugins.active_directory.ActiveDirectorySecurityRealm.forceLdaps", null)
System.setProperty("hudson.plugins.active_directory.ActiveDirectorySecurityRealm.forceLdaps", undefined)
Any help is appreciated.
I have found the problem by myself:
You can use System.clearProperty(String key) to remove the System Parameter, the option I didn't used before.
Hopefully this can be a good use for other people.
Cheers.
If you added the property via Script Console, restarting Jenkins would remove it.
sudo systemctl restart jenkins
Related
During execution spectron opens two terminal windows that are blank. First window is the application as I wanted it to be, other windows look like terminals without anything inside.
Currently i focus to the first window using focus().
Github issue link : https://github.com/electron/spectron/issues/60
Does anyone have any idea what's going on ? is it a ChromeDriver issue?
I've had the same issue (just to clarify, on Windows only).
Apparently, was introduced as a workaround for Spectron on Windows:
The launcher binary written in go was frequently marked as a trojan or virus. A simple bat file should seen as more innocuous. See #93 for the problem as well as this bat file.
Unfortunately, a consequence of using a .bat file is the unavoidable spawning of these extra empty consoles.
The only known workaround is using .focus() like you mentioned.
A combination of focus() with setAlwaysOnTop(true) helps.
chaiAsPromised.transferPromiseness = app.transferPromiseness;
return app.start().then( async () => {
await app.browserWindow.focus();
await app.browserWindow.setAlwaysOnTop(true);
});
});
Maybe rework launcher.bat to use the start command?
something like:
Start "" "%SPECTRON_NODE_PATH%" "%SPECTRON_LAUNCHER_PATH%" %*
Just eyeballing it.
Not sure about managing the exit fail codes but IIRC that does not leave up shell.
Full disclosure, I do not have this app and this is a drive-by answer. Hope it helps.
Due to Atlassian IDE Connector is outdated, trying to use build in Task management system.
Adding server:
And then trying to browse tasks but getting error:
Cannot connect to https://*.atlassian.net Request failed. Reason: "Field 'summary' does not exist or this field cannot be viewed by anonymous users." "Field 'assignee' does not exist or this field cannot be viewed by anonymous users." "Field 'resolution' does not exist or this field cannot be viewed by anonymous users."
Maybe someone faced similar problem?
I had the same issue today. It started occurring when i tried to mark Update issue state to "In Progress"
From that point on every time i tried to work with this task or add new ones i got similar error messages.
The only solution that i could find was to remove the already affected tasks first.
And after that uncheck "Update issue state" in "Open Task" options.
Unfortunately now there is no way to influence task status from PHPStorm.
It's a temporary solution at best, hopefully Atlassian does something about this soon.
I've found a workaround for such an issue. It's working for me, however it's not perfect or handy in any way. phpStorm is collecting JIRA issue data somehow (it allows you to search thru the issue acronyms and lets you pick up one issue to time tracking). However with the problem which is occuring right now it's not possible for phpStorm to gather/update new issue data from connected projects to your account.
The workaround is to open the Atlassian Connector settings, JIRA Server section, when you have your credentials entered, just press "Test Connection". Probably it will report an error, but, surprisingly for me, task list in phpStorm is updated, new tasks appear...
Please try it, maybe this will work for you too?
Thought I would put a solution on this page found it in Chinese and it's really quite embarrassing I missed this as well.
The below is the ending point for working on a task which will give you the option to commit changes, merge branches, and yep Update Issue State.
Tools > Tasks & Context > Close Active Task... (Alt + Shift + W)
Just checked today, no errors and everything working fine.
Whenever I do save on Jenkins(Manage Jenkins-> Configure System), I am getting the above error.
Can you please suggest the possible reason.
I had the same issue.
In my case, the cause was wrong Jenkins URL setting.
Check Jenkins URL setting in http://{jenkins_server}/configure.
Reference
https://github.com/dboissier/jenkins-control-plugin/issues/30
The issue above is the only solution I have ever found.
And the suggestion is following.
could you please run the following url :
YOUR_JENKINS_URL/api/xml?tree=nodeName,nodeDescription,primaryView[name,url],views[name,url,views[name,url]]
Please go to your http://jenkins_server/configure and check the value
of Jenkins URL (located above Email Notification section). Normally
you should have your jenkins server url. If not, please fix it (unless
you need to keep the value ci/ and in that case, the plugin will not
work)
I want to integrate CANOE with Jenkins. Can anybody please tell me how to do that. For now I am able to open CANOE window through Jenkins. But it shows a disclaimer on startup. I want to click on "I accept" button automatically through Jenkins using any command. Can you please tell me how to do that or what is that command?. Is there any other way to click on that button without pressing the key?
CANoe is implemented as a COM-server. Using the COM-interface, you can start CANoe from a script and thus bypass the disclaimer. I have managed to do this either using C# or python with pywin32. The CANoe help-section contains some help on what COM-server commands are available to get you started.
edit:
If CANoe is associated with cfg-files as standard application, you can call the cfg-file directly and have it launch CANoe. That will still require you to manually click the disclaimer dialog though. In a script, such as the one I mentioned earlier, you can create it in such a way that you are able to specify which cfg-file to use as an input parameter. It can also be written so that you can specify certain test-suites containing your CAPL-scripts. It can basically give you access to most CANoe features necessary to run test-suites with different settings. However, I've not tried a lot of them yet.
Unfortunately, none of your examples can be achieved without creating this kind of script.
CANOE simply loads a .cfg configuration file. For jenkins, I am using the Visual Basics script and same triggering into the Jenkins job.
In this was it bypasses the "I accept" and other windows and loads the desired configuration also also using same kind of VB scirpt you can close the application.
'ToStart CANoe_Start.vbs
Set App = CreateObject("CANoe.Application")
dim fso: set fso = CreateObject("Scripting.FileSystemObject")
dim CANoe_config
CANoe_config = fso.BuildPath(fso.GetAbsolutePathName("."), "<target.cfg>")
App.Measurement.Start()
After that you can add the operations in jenkins jobs; to close the same appilcation use :
'ToStop CANoe_Stop.vbs
Set App = CreateObject("CANoe.Application")
App.Quit()
This worked for me. You can call the vbs's over jenkins jobs.
When I try to go to the puppet dashboard it loads up a white page saying
The environment must be purely alphanumeric, not ''
I googled this error a bit but there does not seem to be a finite solution yet. As fast as what I've done I've looked into the conf.d files, but I'm afraid to make the wrong edit. I'm still new to this and was wondering if anyone has ever ran into a similar situation?
This happens if one tries to access puppet console in wrong port (8140) instead of 443, assuming default ports are being used.
This also happens when you install puppet-passenger The opensource.
In this case - everything is OK!
Install Open Source agent and be a Puppet Master :)