Jenkins CI Pipeline Scripts not permitted to use method groovy.lang.GroovyObject

Quickfix Solution: I had similar issue and I resolved it doing the following Navigate to jenkins > Manage jenkins > In-process Script Approval There was a pending command, which I had to approve. Alternative 1: Disable sandbox As this article explains in depth, groovy scripts are run in sandbox mode by default. This means that … Read more

How to remove a TFS Workspace Mapping?

From VS: Open Team Explorer Click Source Control Explorer In the nav bar of the tool window there is a drop down labeled “Workspaces”. Extend it and click on the “Workspaces…” option (yeah, a bit un-intuitive) The “Manage Workspaces” window comes up. Click edit and you can add / remove / edit your workspace From … Read more

Jenkinsfile syntax highlighting in Java project using IntelliJ IDEA

If you want IDEA to recognize a Jenkinsfile as a Groovy file, then you can add the String “Jenkinsfile” as a valid file name pattern (normally contains file endings) for Groovy files. This is supported “out of the box” without requiring any additional Plugin (except the “Groovy” Plugin, but that is already part of IDEA). … Read more

Python unittests in Jenkins?

sample tests: tests.py: # tests.py import random try: import unittest2 as unittest except ImportError: import unittest class SimpleTest(unittest.TestCase): @unittest.skip(“demonstrating skipping”) def test_skipped(self): self.fail(“shouldn’t happen”) def test_pass(self): self.assertEqual(10, 7 + 3) def test_fail(self): self.assertEqual(11, 7 + 3) JUnit with pytest run the tests with: py.test –junitxml results.xml tests.py results.xml: <?xml version=”1.0″ encoding=”utf-8″?> <testsuite errors=”0″ failures=”1″ name=”pytest” … Read more

“User interaction is not allowed” trying to sign an OSX app using codesign

I too have been fighting this. Nothing helped until I tried the suggestion on http://devnet.jetbrains.com/thread/311971. Thanks ashish agrawal! Login your build user via the GUI and open Keychain Access. Select your signing private key, right-click, choose Get Info, change to the Access Control tab and select the “Allow all applications to access this item”.

How to uninstall Jenkins?

These instructions apply if you installed using the official Jenkins Mac installer from http://jenkins-ci.org/ Execute uninstall script from terminal: ‘/Library/Application Support/Jenkins/Uninstall.command’ or use Finder to navigate into that folder and double-click on Uninstall.command. Finally delete last configuration bits which might have been forgotten: sudo rm -rf /var/root/.jenkins ~/.jenkins If the uninstallation script cannot be found … Read more

How to solve npm install throwing fsevents warning on non-MAC OS?

fsevents is dealt differently in mac and other linux system. Linux system ignores fsevents whereas mac install it. As the above error message states that fsevents is optional and it is skipped in installation process. You can run npm install –no-optional command in linux system to avoid above warning. Further information https://github.com/npm/npm/issues/14185 https://github.com/npm/npm/issues/5095

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)