This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jenkinsci.plugins.envinject.EnvInjectJobProperty | |
import org.jenkinsci.plugins.envinject.EnvInjectJobPropertyInfo | |
node('master') { | |
script { | |
echo 'Hello World' | |
echo "$JOB_NAME" | |
echo "$perform" | |
persistInfo(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Dhttpclient.hostnameVerifier=AllowAll \ | |
-Dorg.opensaml.httpclient.https.disableHostnameVerification=true \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR {org.wso2.carbon.analytics.idp.client.external.ExternalIdPClient} - Error occurred while parsing error response. Response: '{"error_description":"Refresh token is expired.","error":"invalid_grant"}' java.lang.UnsupportedOperationException: JsonObject | |
at com.google.gson.JsonElement.getAsString(JsonElement.java:192) | |
at org.wso2.carbon.analytics.idp.client.external.ExternalIdPClient.getErrorMessage(ExternalIdPClient.java:558) | |
at org.wso2.carbon.analytics.idp.client.external.ExternalIdPClient.login(ExternalIdPClient.java:345) | |
at org.wso2.carbon.analytics.auth.rest.api.impl.LoginApiServiceImpl.loginAppNamePost(LoginApiServiceImpl.java:110) | |
at org.wso2.carbon.analytics.auth.rest.api.LoginApi.loginAppNamePost(LoginApi.java:81) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR {org.wso2.carbon.registry.core.dataaccess.TransactionManager} - Failed to start new registry transaction. | |
org.apache.tomcat.jdbc.pool.PoolExhaustedException: [pool-24-thread-3] Timeout: Pool empty. Unable to fetch a connection in 60 seconds, none available[size:50; busy:50; idle:0; lastwait:60000]. | |
at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:703) | |
at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:200) | |
at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128) | |
at org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCTransactionManager.beginTransaction(JDBCTransactionManager.java:80) | |
at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.beginTransaction(EmbeddedRegistry.java:443) | |
at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:505) | |
at org.wso2.carbon.registry.core.session.UserRegistry.getInternal(UserRegistry.java:617) | |
at org.wso2.carbon.registry.core.session.UserRegistry. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR {org.wso2.carbon.analytics.idp.client.external.ExternalIdPClient} - Error occurred while parsing error response. Response: '{"schemas":"urn:ietf:params:scim:api:messages:2.0:Error","detail":"Cannot retrieve group through scim to user store . SCIM is not enabled for user store PRIMARY","status":"500"}' java.lang.UnsupportedOperationException: JsonObject | |
at com.google.gson.JsonElement.getAsString(JsonElement.java:192) | |
at org.wso2.carbon.analytics.idp.client.external.ExternalIdPClient.getErrorMessage(ExternalIdPClient.java:558) | |
at org.wso2.carbon.analytics.idp.client.external.ExternalIdPClient.getAdminRole(ExternalIdPClient.java:195) | |
at org.wso2.carbon.status.dashboard.core.internal.roles.provider.RolesProvider.readSysAdminConfigs(RolesProvider.java:97) | |
at org.wso2.carbon.status.dashboard.core.internal.roles.provider.RolesProvider.getSysAdminRolesList(RolesProvider.java:53) | |
at org.wso2.carbon.status.dashboard.core.internal.services.PermissionGrantServiceComponent.initPermission(PermissionGrantService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR - StandardContext Error configuring application listener of class org.springframework.web.context.ContextLoaderListener | |
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener | |
at org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:153) | |
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1750) | |
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:534) | |
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:516) | |
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:148) | |
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5034) | |
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5641) | |
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ycr.aws; | |
import com.amazonaws.services.ec2.AmazonEC2; | |
import com.amazonaws.services.ec2.AmazonEC2ClientBuilder; | |
import com.amazonaws.services.ec2.model.DescribeInstancesRequest; | |
import com.amazonaws.services.ec2.model.DescribeInstancesResult; | |
import com.amazonaws.services.ec2.model.Instance; | |
import com.amazonaws.services.ec2.model.Reservation; | |
import com.amazonaws.services.ec2.model.Tag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This method is responsible for creating the Jenkins job. | |
* @param jobName jobName | |
* @param timerConfig cron expression to schedule the job | |
* @return | |
*/ | |
def createJenkinsJob(def jobName, def timerConfig) { | |
echo "Creating the job ${jobName}" | |
// Here I'm using a shared library in the pipeline, so I have loaded my shared library here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/http; | |
import ballerina/test; | |
import ballerina/config; | |
string uri = "http://0.0.0.0:9095/v1"; | |
boolean isServiceSkeletonStarted; | |
function init() { | |
// Starting the swagger based service | |
isServiceSkeletonStarted = test:startServiceSkeleton("mockservice", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/http; | |
import ballerina/io; | |
boolean isHelloServiceStarted; | |
// Before function to start the service | |
function startMock () { | |
isHelloServiceStarted = test:startServices("mock"); | |
} |