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
public class MainActivity extends Activity { | |
protected static final String TAG = "MainActivity" ; | |
// Define protected instances of the needed UI elements | |
protected ProgressBar busyIndicator = null ; | |
protected TextView weatherData = null ; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
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
FROM microsoft/dotnet-framework:4.7.2-sdk AS build | |
WORKDIR /app | |
# copy csproj and restore as distinct layers | |
COPY *.sln . | |
COPY aspnetapp/*.csproj ./aspnetapp/ | |
COPY aspnetapp/*.config ./aspnetapp/ | |
RUN nuget restore | |
# copy everything else and build app |
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 groovy.json.JsonSlurper | |
pipeline { | |
options { | |
buildDiscarder(logRotator(numToKeepStr: '50')) | |
timeout(time: 20, unit: 'MINUTES') // If the build takes longer than 20 minutes, fail automatically | |
} | |
agent { | |
kubernetes { | |
label "zaproxy-maven-sidecars-${env.BUILD_ID}" |